示例#1
0
 /**
  * Adds a new managed currency on the fly
  *
  * @param \Matmar10\Money\Entity\Currency $currency The Currency to add
  * @param array $regions The regions to associate with the currencies
  * @return \Matmar10\Bundle\MoneyBundle\Service\CurrencyManager
  */
 public function addCurrency(Currency $currency, array $regions = array())
 {
     $this->addedCurrencies[$currency->getCurrencyCode()] = $currency;
     $this->addedCurrencyRegions[$currency->getCurrencyCode()] = $regions;
     return $this;
 }