Open Journal Systems  3.3.0
Money\Exception\UnresolvableCurrencyPairException Class Reference
Inheritance diagram for Money\Exception\UnresolvableCurrencyPairException:
Money\Exception

Static Public Member Functions

static createFromCurrencies (Currency $baseCurrency, Currency $counterCurrency)
 

Detailed Description

Thrown when there is no currency pair (rate) available for the given currencies.

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 13 of file UnresolvableCurrencyPairException.php.

Member Function Documentation

◆ createFromCurrencies()

static Money\Exception\UnresolvableCurrencyPairException::createFromCurrencies ( Currency  $baseCurrency,
Currency  $counterCurrency 
)
static

Creates an exception from Currency objects.

Parameters
Currency$baseCurrency
Currency$counterCurrency
Returns
UnresolvableCurrencyPairException

Definition at line 23 of file UnresolvableCurrencyPairException.php.

References Money\Currency\getCode().

Referenced by Money\Exchange\FixedExchange\quote(), Money\Exchange\SwapExchange\quote(), and Money\Exchange\ExchangerExchange\quote().


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