Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (Exchange $exchange, Currencies $currencies) | |
quote (Currency $baseCurrency, Currency $counterCurrency) | |
Static Public Member Functions | |
static | registerCalculator ($calculator) |
Provides a way to get an exchange rate through a minimal set of intermediate conversions.
Definition at line 20 of file IndirectExchange.php.
Money\Exchange\IndirectExchange::__construct | ( | Exchange | $exchange, |
Currencies | $currencies | ||
) |
Exchange | $exchange | |
Currencies | $currencies |
Definition at line 56 of file IndirectExchange.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 77 of file IndirectExchange.php.
References Money\CurrencyPair\getConversionRatio().
|
static |
string | $calculator |
Definition at line 65 of file IndirectExchange.php.