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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
all ( ) : array Get an array of all supported currencies
find ( string $code ) : mixed Find a specific currency
getCode ( ) : string Get the three letter code for the currency
getDecimals ( ) : integer Get the number of decimal places for this currency
getNumeric ( ) : string Get the numeric code for this currency

Приватные методы

Метод Описание
__construct ( $code, $numeric, $decimals ) Create a new Currency object

Описание методов

all() публичный статический метод

Get an array of all supported currencies
public static all ( ) : array
Результат array

find() публичный статический метод

Find a specific currency
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
public getCode ( ) : string
Результат string

getDecimals() публичный метод

Get the number of decimal places for this currency
public getDecimals ( ) : integer
Результат integer

getNumeric() публичный метод

Get the numeric code for this currency
public getNumeric ( ) : string
Результат string