Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (array $list) | |
quote (Currency $baseCurrency, Currency $counterCurrency) | |
Provides a way to get exchange rate from a static list (array).
Definition at line 15 of file FixedExchange.php.
Money\Exchange\FixedExchange::__construct | ( | array | $list | ) |
array | $list |
Definition at line 28 of file FixedExchange.php.
{Returns a currency pair for the passed currencies with the rate coming from a third-party source.
UnresolvableCurrencyPairException | When there is no currency pair (rate) available for the given currencies |
Implements Money\Exchange.
Definition at line 36 of file FixedExchange.php.
References Money\Exception\UnresolvableCurrencyPairException\createFromCurrencies(), and Money\Currency\getCode().