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.
파일 보기 프로젝트 열기: omnipay/common 1 사용 예제들

공개 메소드들

메소드 설명
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