Closed nlemsieh closed 8 years ago
I tried to use
Currency::hasCurrency('EUR')
But it seams to return always true. Then I adopted this solution :
public function hasCurrency($currency) { return $currency == $this->getCurrencyCode(); // return isset($this->currencies[$currency]); }
Your approach will only check if the current currency matches the one you passed to the function. The hasCurrency is meant to check if the currency you pass to it is in the system.
hasCurrency
I tried to use
But it seams to return always true. Then I adopted this solution :