Open Journal Systems
3.3.0
|
Public Member Functions | |
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 12 of file Exchange.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 |
Implemented in Money\Exchange\IndirectExchange, Money\Exchange\ExchangerExchange, Money\Exchange\ReversedCurrenciesExchange, Money\Exchange\SwapExchange, and Money\Exchange\FixedExchange.