/** * Format the money amount to nice display form. * * @param integer $amount * @param string|null $currency * * @return string */ public function formatAmount($amount, $currency = null, $locale = null) { return $this->helper->formatAmount($amount, $currency, false, $locale); }
/** * @param $amount * @param null $currency * * @return string */ public function formatAmount($amount, $currency = null) { return str_replace('.00', '', $this->moneyHelper->formatAmount($amount, $currency)); }
public function __construct($locale, CurrencyContextInterface $currencyContext) { $this->currencyContext = $currencyContext; parent::__construct($locale); }
public function __construct($locale, $defaultCurrency, CurrencyContextInterface $currencyContext) { parent::__construct($locale, $defaultCurrency); $this->currencyContext = $currencyContext; }
/** * Format the money amount to nice display form. * * @param integer $amount * @param string|null $currency * * @return string */ public function formatAmount($amount, $currency = null) { return $this->helper->formatAmount($amount, $currency); }