Exemple #1
0
 /**
  * Returns the currency sub-unit.
  *
  * @return int the sub-unit.
  */
 public function getFractionUnit()
 {
     return NostoCurrencyInfo::getFractionUnit($this->code);
 }
Exemple #2
0
 /**
  * Returns the currency fraction unit to use for converting prices, e.g. from euros to cents and vice versa.
  *
  * @param NostoCurrencyCode $currency the currency.
  * @return int the unit.
  */
 private static function getCurrencyFractionUnit(NostoCurrencyCode $currency)
 {
     return NostoCurrencyInfo::getFractionUnit($currency);
 }