ResolvingRateProvider
in package
implements
RateProvider
FinalYes
Порядок поиска: та же валюта, прямой курс, обратный, кросс через опору.
Table of Contents
Interfaces
- RateProvider
- Источник курса для пары валют.
Properties
Methods
- __construct() : mixed
- get() : ExchangeRate
- fallback() : ExchangeRate
- triangulate() : ExchangeRate
Properties
$direct read-only
private
RateProvider
$direct
$math read-only
private
IntegerMath
$math
$pivot read-only
private
Currency
$pivot
Methods
__construct()
public
__construct(RateProvider $direct, Currency $pivot, IntegerMath $math) : mixed
Parameters
- $direct : RateProvider
- $pivot : Currency
- $math : IntegerMath
get()
public
get(CurrencyPair $pair) : ExchangeRate
Parameters
- $pair : CurrencyPair
Attributes
- #[Override]
Return values
ExchangeRatefallback()
private
fallback(CurrencyPair $pair, MissingRateException $directMiss) : ExchangeRate
Parameters
- $pair : CurrencyPair
- $directMiss : MissingRateException
Return values
ExchangeRatetriangulate()
private
triangulate(CurrencyPair $pair, MissingRateException $directMiss, MissingRateException $inverseMiss) : ExchangeRate
Parameters
- $pair : CurrencyPair
- $directMiss : MissingRateException
- $inverseMiss : MissingRateException