Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * @param      $amount
  * @param null $currency
  *
  * @return string
  */
 public function formatAmount($amount, $currency = null)
 {
     return str_replace('.00', '', $this->moneyHelper->formatAmount($amount, $currency));
 }
Ejemplo n.º 3
0
 public function __construct($locale, CurrencyContextInterface $currencyContext)
 {
     $this->currencyContext = $currencyContext;
     parent::__construct($locale);
 }
Ejemplo n.º 4
0
 public function __construct($locale, $defaultCurrency, CurrencyContextInterface $currencyContext)
 {
     parent::__construct($locale, $defaultCurrency);
     $this->currencyContext = $currencyContext;
 }
Ejemplo n.º 5
0
 /**
  * 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);
 }