Skip to content

Commit

Permalink
add format parameter to getAmount() (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo authored Nov 14, 2016
2 parents 82c003b + 7d91bf9 commit f57440b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CartFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ public function __construct($amount, $taxable = false, $options = [])
/**
* Gets the formatted amount.
*
* @param bool $format
*
* @return string
*/
public function getAmount()
public function getAmount($format = true)
{
return LaraCart::formatMoney($this->amount, $this->locale, $this->internationalFormat);
return LaraCart::formatMoney($this->amount, $this->locale, $this->internationalFormat, $format);
}
}

0 comments on commit f57440b

Please sign in to comment.