Class Currency
Currency class
This class abstracts certain functionality around currency objects,
currency codes and currency numbers relating to global currencies used
in the Omnipay system.
Methods summary
public
string
|
#
getCode( )
Get the three letter code for the currency
Get the three letter code for the currency
Returns
string
|
public
string
|
#
getNumeric( )
Get the numeric code for this currency
Get the numeric code for this currency
Returns
string
|
public
integer
|
#
getDecimals( )
Get the number of decimal places for this currency
Get the number of decimal places for this currency
Returns
integer
|
public static
mixed
|
#
find( string $code )
Find a specific currency
Parameters
- $code
- The three letter currency code
Returns
mixed A Currency object, or null if no currency was found
|
public static
array
|
#
all( )
Get an array of all supported currencies
Get an array of all supported currencies
Returns
array
|