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

Méthode Description
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

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
public static all ( ) : array
Résultat array

find() public static méthode

Find a specific currency
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

getCode() public méthode

Get the three letter code for the currency
public getCode ( ) : string
Résultat string

getDecimals() public méthode

Get the number of decimal places for this currency
public getDecimals ( ) : integer
Résultat integer

getNumeric() public méthode

Get the numeric code for this currency
public getNumeric ( ) : string
Résultat string