CloudCastle CurrencyConverter

TtlRateProvider
in package
implements RateProvider

FinalYes

Кэш с временем жизни. Часы передаются замыканием now(): int, чтобы не тащить внешний пакет.

Table of Contents

Interfaces

RateProvider
Источник курса для пары валют.

Properties

$inner  : RateProvider
$now  : Closure
$stored  : array<string, ExchangeRate, at: int}>
$ttlSeconds  : int

Methods

__construct()  : mixed
get()  : ExchangeRate

Properties

Methods

On this page

Search results