PHP Class Omnipay\Common\Currency
This class abstracts certain functionality around currency objects,
currency codes and currency numbers relating to global currencies used
in the Omnipay system.
Mostra file
Open project: omnipay/common
Class Usage Examples
Public Methods
Private Methods
Method |
Description |
|
__construct ( $code, $numeric, $decimals ) |
Create a new Currency object |
|
Method Details
all()
public static method
Get an array of all supported currencies
find()
public static method
public static find ( string $code ) : mixed |
$code |
string |
The three letter currency code |
return |
mixed |
A Currency object, or null if no currency was found |
Get the three letter code for the currency
getDecimals()
public method
Get the number of decimal places for this currency
getNumeric()
public method
Get the numeric code for this currency