Open Journal Systems  3.3.0
Money\Currencies\ISOCurrencies Class Reference
Inheritance diagram for Money\Currencies\ISOCurrencies:
Money\Currencies

Public Member Functions

 contains (Currency $currency)
 
 getIterator ()
 
 numericCodeFor (Currency $currency)
 
 subunitFor (Currency $currency)
 

Detailed Description

List of supported ISO 4217 currency codes and names.

Author
Mathias Verraes

Definition at line 14 of file ISOCurrencies.php.

Member Function Documentation

◆ contains()

Money\Currencies\ISOCurrencies::contains ( Currency  $currency)

{Checks whether a currency is available in the current context.

Parameters
Currency$currency
Returns
bool
}

Implements Money\Currencies.

Definition at line 26 of file ISOCurrencies.php.

References Money\Currency\getCode().

Referenced by Money\Currencies\ISOCurrencies\numericCodeFor(), and Money\Currencies\ISOCurrencies\subunitFor().

◆ getIterator()

Money\Currencies\ISOCurrencies::getIterator ( )
Returns
\Traversable

Definition at line 64 of file ISOCurrencies.php.

◆ numericCodeFor()

Money\Currencies\ISOCurrencies::numericCodeFor ( Currency  $currency)

Returns the numeric code for a currency.

Parameters
Currency$currency
Returns
int
Exceptions
UnknownCurrencyExceptionIf currency is not available in the current context

Definition at line 52 of file ISOCurrencies.php.

References Money\Currencies\ISOCurrencies\contains(), and Money\Currency\getCode().

◆ subunitFor()

Money\Currencies\ISOCurrencies::subunitFor ( Currency  $currency)

{Returns the subunit for a currency.

Parameters
Currency$currency
Returns
int
Exceptions
UnknownCurrencyExceptionIf currency is not available in the current context
}

Implements Money\Currencies.

Definition at line 34 of file ISOCurrencies.php.

References Money\Currencies\ISOCurrencies\contains(), and Money\Currency\getCode().


The documentation for this class was generated from the following file: