protected function checkCurrencies($currencies)
    {
        foreach ((array) $currencies as $currency) {
            if (!$this->hasCurrency($currency)) {
                throw new InvalidCurrencyException(sprintf('"%s" is an unknown currency code.', $currency));
            }
        }
    }
protected function checkCurrencies($currencies)
    {
        foreach ((array) $currencies as $currency) {
            if (!$this->hasCurrency($currency)) {
                throw new InvalidCurrencyException(sprintf('"%s" is an unknown currency code.', $currency));
            }
        }
    }
protected function checkCurrencies ( $ currencies ) { foreach ( ( array ) $ currencies as $ currency ) { if ( ! $ this -> hasCurrency ( $ currency ) ) { throw new InvalidCurrencyException ( sprintf ( '"%s" is an unknown currency code.' , $ currency ) ) ; } } }
Checks to see if the currencies supplied are known or
unknown.

@param array|string $currencies
@throws \Dough\Exception\InvalidCurrencyException when currencies are unknown.
Checks to see if the currencies supplied are known or unknown .