public static function create($code, $value = 0)
    {
        $cd = strtoupper($code);
        list($symbol, $precision, $name) = self::getDefinition($cd);
        $crcy = new Currency($value, $cd, $symbol, $precision, $name);
        $crcy->setLocale(self::getLocale());

        return $crcy;
    }
public static function create($code, $value = 0)
    {
        $cd = strtoupper($code);
        list($symbol, $precision, $name) = self::getDefinition($cd);
        $crcy = new Currency($value, $cd, $symbol, $precision, $name);
        $crcy->setLocale(self::getLocale());

        return $crcy;
    }
public static function create ( $ code , $ value = 0 ) { $ cd = strtoupper ( $ code ) ; list ( $ symbol , $ precision , $ name ) = self :: getDefinition ( $ cd ) ; $ crcy = new Currency ( $ value , $ cd , $ symbol , $ precision , $ name ) ; $ crcy -> setLocale ( self :: getLocale ( ) ) ; return $ crcy ; }
Create a currency

@param string $code  Currency 3 letter ISO4217 code
@param int    $value initial value for currency

@return Currency

@throws \ErrorException
Create a currency