src/Helper/CurrencyHelper.php
private static function assertCurrency($code)
    {
        if (!isset(self::$data[$code])) {
            throw new NostoException(sprintf(
                'Currency (%s) must be one of the following ISO 4217 codes: "%s".',
                $code,
                implode('", "', array_keys(self::$data))
            ));
        }
    }
private static function assertCurrency($code)
    {
        if (!isset(self::$data[$code])) {
            throw new NostoException(sprintf(
                'Currency (%s) must be one of the following ISO 4217 codes: "%s".',
                $code,
                implode('", "', array_keys(self::$data))
            ));
        }
    }
private static function assertCurrency ( $ code ) { if ( ! isset ( self :: $ data [ $ code ] ) ) { throw new NostoException ( sprintf ( 'Currency (%s) must be one of the following ISO 4217 codes: "%s".' , $ code , implode ( '", "' , array_keys ( self :: $ data ) ) ) ) ; } }
Asserts that the currency code is supported.

@param string $code the currency code to test.
@throws NostoException
Asserts that the currency code is supported .