PHP Класс Swap\Swap

Автор: Florian Voutzinos ([email protected])
Наследование: implements swap\SwapInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Exchanger\Contract\ExchangeRateProvider $exchangeRateProvider ) Creates a new Swap.
historical ( string $currencyPair, DateTimeInterface $date, array $options = [] ) : Exchanger\ExchangeRate Quotes a currency pair.
latest ( string $currencyPair, array $options = [] ) : Exchanger\ExchangeRate Quotes a currency pair.

Приватные методы

Метод Описание
quote ( string $currencyPair, DateTimeInterface $date = null, array $options = [] ) : Exchanger\ExchangeRate Quotes a currency pair.

Описание методов

__construct() публичный Метод

Creates a new Swap.
public __construct ( Exchanger\Contract\ExchangeRateProvider $exchangeRateProvider )
$exchangeRateProvider Exchanger\Contract\ExchangeRateProvider

historical() публичный Метод

Quotes a currency pair.
public historical ( string $currencyPair, DateTimeInterface $date, array $options = [] ) : Exchanger\ExchangeRate
$currencyPair string The currency pair like "EUR/USD"
$date DateTimeInterface An optional date for historical rates
$options array An array of query options
Результат Exchanger\ExchangeRate

latest() публичный Метод

Quotes a currency pair.
public latest ( string $currencyPair, array $options = [] ) : Exchanger\ExchangeRate
$currencyPair string The currency pair like "EUR/USD"
$options array An array of query options
Результат Exchanger\ExchangeRate