PHP 클래스 Swap\Swap

저자: Florian Voutzinos ([email protected])
상속: implements swap\SwapInterface
파일 보기 프로젝트 열기: florianv/swap 1 사용 예제들

공개 메소드들

메소드 설명
__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