Open Journal Systems
3.3.0
|
Public Member Functions | |
getCode () | |
getDecimals () | |
getNumeric () | |
Static Public Member Functions | |
static | all () |
static | find ($code) |
Currency class
This class abstracts certain functionality around currency objects, currency codes and currency numbers relating to global currencies used in the Omnipay system.
Definition at line 15 of file lib/vendor/omnipay/common/src/Omnipay/Common/Currency.php.
|
static |
Get an array of all supported currencies
Definition at line 82 of file lib/vendor/omnipay/common/src/Omnipay/Common/Currency.php.
Referenced by Omnipay\Common\CurrencyTest\testAll().
|
static |
Find a specific currency
string | $code | The three letter currency code |
Definition at line 67 of file lib/vendor/omnipay/common/src/Omnipay/Common/Currency.php.
Referenced by Omnipay\Common\Message\AbstractRequest\getCurrencyDecimalPlaces(), Omnipay\Common\Message\AbstractRequest\getCurrencyNumeric(), Omnipay\Common\CurrencyTest\testFind(), Omnipay\Common\CurrencyTest\testFindLowercase(), and Omnipay\Common\CurrencyTest\testUnknownCurrencyReturnsNull().
Omnipay\Common\Currency::getCode | ( | ) |
Get the three letter code for the currency
Definition at line 36 of file lib/vendor/omnipay/common/src/Omnipay/Common/Currency.php.
Omnipay\Common\Currency::getDecimals | ( | ) |
Get the number of decimal places for this currency
Definition at line 56 of file lib/vendor/omnipay/common/src/Omnipay/Common/Currency.php.
Omnipay\Common\Currency::getNumeric | ( | ) |
Get the numeric code for this currency
Definition at line 46 of file lib/vendor/omnipay/common/src/Omnipay/Common/Currency.php.