Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (ExchangeRateProvider $exchanger) | |
quote (Currency $baseCurrency, Currency $counterCurrency) | |
Provides a way to get exchange rate from a third-party source and return a currency pair.
Definition at line 19 of file ExchangerExchange.php.
Money\Exchange\ExchangerExchange::__construct | ( | ExchangeRateProvider | $exchanger | ) |
ExchangeRateProvider | $exchanger |
Definition at line 32 of file ExchangerExchange.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 40 of file ExchangerExchange.php.
References Money\Exception\UnresolvableCurrencyPairException\createFromCurrencies(), and Money\Currency\getCode().