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

Public Member Functions

 __construct (Currencies $currencies, CacheItemPoolInterface $pool)
 
 contains (Currency $currency)
 
 getIterator ()
 
 subunitFor (Currency $currency)
 

Detailed Description

Cache the result of currency checking.

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 15 of file CachedCurrencies.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Currencies\CachedCurrencies::__construct ( Currencies  $currencies,
CacheItemPoolInterface  $pool 
)
Parameters
Currencies$currencies
CacheItemPoolInterface$pool

Definition at line 37 of file CachedCurrencies.php.

Member Function Documentation

◆ contains()

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

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

Parameters
Currency$currency
Returns
bool
}

Implements Money\Currencies.

Definition at line 46 of file CachedCurrencies.php.

References Money\Currency\getCode().

◆ getIterator()

Money\Currencies\CachedCurrencies::getIterator ( )

{}

Definition at line 86 of file CachedCurrencies.php.

References Money\Currency\getCode().

◆ subunitFor()

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

References Money\Currency\getCode().


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