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

Public Member Functions

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

Detailed Description

Aggregates several currency repositories.

Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 14 of file AggregateCurrencies.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Currencies\AggregateCurrencies::__construct ( array  $currencies)
Parameters
Currencies[]$currencies

Definition at line 27 of file AggregateCurrencies.php.

Member Function Documentation

◆ contains()

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

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

Parameters
Currency$currency
Returns
bool
}

Implements Money\Currencies.

Definition at line 41 of file AggregateCurrencies.php.

◆ getIterator()

Money\Currencies\AggregateCurrencies::getIterator ( )

{}

Definition at line 69 of file AggregateCurrencies.php.

◆ subunitFor()

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

References Money\Currency\getCode().


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