Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (Currencies $currencies, CacheItemPoolInterface $pool) | |
contains (Currency $currency) | |
getIterator () | |
subunitFor (Currency $currency) | |
Cache the result of currency checking.
Definition at line 15 of file CachedCurrencies.php.
Money\Currencies\CachedCurrencies::__construct | ( | Currencies | $currencies, |
CacheItemPoolInterface | $pool | ||
) |
Currencies | $currencies | |
CacheItemPoolInterface | $pool |
Definition at line 37 of file CachedCurrencies.php.
Money\Currencies\CachedCurrencies::contains | ( | Currency | $currency | ) |
{Checks whether a currency is available in the current context.
Currency | $currency |
Implements Money\Currencies.
Definition at line 46 of file CachedCurrencies.php.
References Money\Currency\getCode().
Money\Currencies\CachedCurrencies::getIterator | ( | ) |
Money\Currencies\CachedCurrencies::subunitFor | ( | Currency | $currency | ) |
{Returns the subunit for a currency.
Currency | $currency |
UnknownCurrencyException | If currency is not available in the current context |
Implements Money\Currencies.
Definition at line 66 of file CachedCurrencies.php.
References Money\Currency\getCode().