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

Public Member Functions

 __construct (array $currencies)
 
 contains (Currency $currency)
 
 getIterator ()
 
 subunitFor (Currency $currency)
 

Detailed Description

A list of custom currencies.

Author
George Mponos gmpon.nosp@m.os@g.nosp@m.mail..nosp@m.com

Definition at line 14 of file CurrencyList.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Currencies\CurrencyList::__construct ( array  $currencies)

Definition at line 26 of file CurrencyList.php.

Member Function Documentation

◆ contains()

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

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

Parameters
Currency$currency
Returns
bool
}

Implements Money\Currencies.

Definition at line 48 of file CurrencyList.php.

References Money\Currency\getCode().

Referenced by Money\Currencies\CurrencyList\subunitFor().

◆ getIterator()

Money\Currencies\CurrencyList::getIterator ( )

{}

Definition at line 68 of file CurrencyList.php.

◆ subunitFor()

Money\Currencies\CurrencyList::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 56 of file CurrencyList.php.

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


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