Open Journal Systems  3.3.0
Money\Currencies Interface Reference
Inheritance diagram for Money\Currencies:
Money\Currencies\AggregateCurrencies Money\Currencies\BitcoinCurrencies Money\Currencies\CachedCurrencies Money\Currencies\CurrencyList Money\Currencies\ISOCurrencies

Public Member Functions

 contains (Currency $currency)
 
 subunitFor (Currency $currency)
 

Detailed Description

Implement this to provide a list of currencies.

Author
Mathias Verraes

Definition at line 12 of file Currencies.php.

Member Function Documentation

◆ contains()

Money\Currencies::contains ( Currency  $currency)

Checks whether a currency is available in the current context.

Parameters
Currency$currency
Returns
bool

Implemented in Money\Currencies\CurrencyList, Money\Currencies\CachedCurrencies, Money\Currencies\AggregateCurrencies, Money\Currencies\ISOCurrencies, and Money\Currencies\BitcoinCurrencies.

◆ subunitFor()

Money\Currencies::subunitFor ( Currency  $currency)

Returns the subunit for a currency.

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

Implemented in Money\Currencies\CachedCurrencies, Money\Currencies\CurrencyList, Money\Currencies\AggregateCurrencies, Money\Currencies\ISOCurrencies, and Money\Currencies\BitcoinCurrencies.


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