PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Приватные методы
Метод |
Описание |
|
__construct ( $code, $numeric, $decimals ) |
Create a new Currency object |
|
Описание методов
all()
публичный статический метод
Get an array of all supported currencies
find()
публичный статический метод
public static find ( string $code ) : mixed |
$code |
string |
The three letter currency code |
Результат |
mixed |
A Currency object, or null if no currency was found |
getCode()
публичный метод
Get the three letter code for the currency
getDecimals()
публичный метод
Get the number of decimal places for this currency
getNumeric()
публичный метод
Get the numeric code for this currency