Open Journal Systems  3.3.0
Money\Exchange\ReversedCurrenciesExchange Class Reference
Inheritance diagram for Money\Exchange\ReversedCurrenciesExchange:
Money\Exchange

Public Member Functions

 __construct (Exchange $exchange)
 
 quote (Currency $baseCurrency, Currency $counterCurrency)
 

Detailed Description

Tries the reverse of the currency pair if one is not available.

Note: adding nested ReversedCurrenciesExchange could cause a huge performance hit.

Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 17 of file ReversedCurrenciesExchange.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Exchange\ReversedCurrenciesExchange::__construct ( Exchange  $exchange)
Parameters
Exchange$exchange

Definition at line 30 of file ReversedCurrenciesExchange.php.

Member Function Documentation

◆ quote()

Money\Exchange\ReversedCurrenciesExchange::quote ( Currency  $baseCurrency,
Currency  $counterCurrency 
)

{Returns a currency pair for the passed currencies with the rate coming from a third-party source.

Parameters
Currency$baseCurrency
Currency$counterCurrency
Returns
CurrencyPair
Exceptions
UnresolvableCurrencyPairExceptionWhen there is no currency pair (rate) available for the given currencies
}

Implements Money\Exchange.

Definition at line 38 of file ReversedCurrenciesExchange.php.


The documentation for this class was generated from the following file: