PHP Класс Money\Currency

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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