Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (Swap $swap) | |
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 17 of file SwapExchange.php.
Money\Exchange\SwapExchange::__construct | ( | Swap | $swap | ) |
Swap | $swap |
Definition at line 30 of file SwapExchange.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 38 of file SwapExchange.php.
References Money\Exception\UnresolvableCurrencyPairException\createFromCurrencies(), and Money\Currency\getCode().