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.
Afficher le fichier
Open project: omnipay/common
Class Usage Examples
Méthodes publiques
Private Methods
Méthode |
Description |
|
__construct ( $code, $numeric, $decimals ) |
Create a new Currency object |
|
Method Details
all()
public static méthode
Get an array of all supported currencies
find()
public static méthode
public static find ( string $code ) : mixed |
$code |
string |
The three letter currency code |
Résultat |
mixed |
A Currency object, or null if no currency was found |
Get the three letter code for the currency
getDecimals()
public méthode
Get the number of decimal places for this currency
getNumeric()
public méthode
Get the numeric code for this currency