PHP 클래스 Money\Currency

파일 보기 프로젝트 열기: ulabox/money 1 사용 예제들

공개 메소드들

메소드 설명
__toString ( ) : string Returns a string representation of the currency, namely its ISO code
code ( ) : string Returns the currency code
equals ( Currency $other ) : boolean Checks whether this currency is the same as an other
fromCode ( string $code ) : Currency Creates a Currency from its code

비공개 메소드들

메소드 설명
__construct ( string $code )

메소드 상세

__toString() 공개 메소드

Returns a string representation of the currency, namely its ISO code
public __toString ( ) : string
리턴 string

code() 공개 메소드

Returns the currency code
public code ( ) : string
리턴 string

equals() 공개 메소드

Checks whether this currency is the same as an other
public equals ( Currency $other ) : boolean
$other Currency
리턴 boolean

fromCode() 공개 정적인 메소드

Creates a Currency from its code
public static fromCode ( string $code ) : Currency
$code string
리턴 Currency