public static function getCurrencyId($isoCode)
    {
        $allCurrencies = self::getAll();

        foreach ($allCurrencies as $currency) {
            if (strcasecmp($currency['abbreviation'], $isoCode) === 0) {
                return $currency['id'];
            }
        }
        throw new NotFound('Currency', $isoCode);
    }
public static function getCurrencyId($isoCode)
    {
        $allCurrencies = self::getAll();

        foreach ($allCurrencies as $currency) {
            if (strcasecmp($currency['abbreviation'], $isoCode) === 0) {
                return $currency['id'];
            }
        }
        throw new NotFound('Currency', $isoCode);
    }
public static function getCurrencyId ( $ isoCode ) { $ allCurrencies = self :: getAll ( ) ; foreach ( $ allCurrencies as $ currency ) { if ( strcasecmp ( $ currency [ 'abbreviation' ] , $ isoCode ) === 0 ) { return $ currency [ 'id' ] ; } } throw new NotFound ( 'Currency' , $ isoCode ) ; }
Get the currencyId for a currency

@param $isoCode
@return int
@throws NotFound
Get the currencyId for a currency