abstract class AbstractConverter

Methods

array
converterDetails()

Returns information about the converter Must return array:

array
getExchangeRates($base, array $currencies)

Returns list of exchange rates for currencies specified.

getName()

No description

getDescription()

No description

Client
getHttpClient()

No description

$this
forgetCache()

Forget the repository cache.

getCacheKey()

No description

float|int
getCacheLifetime()

Get the cache lifetime.

cacheCallback($cacheKey, Closure $closure)

No description

Repository
getCacheDriver()

No description

Details

at line 21
abstract array converterDetails()

Returns information about the converter Must return array:

[ 'name' => 'Open Exchange Rates', 'description' => 'Conversion services provided by Open Exchange Rates.' ]

Return Value

array

at line 30
abstract array getExchangeRates($base, array $currencies)

Returns list of exchange rates for currencies specified.

Parameters

$base
array $currencies

Return Value

array

at line 36
getName()

No description

at line 41
getDescription()

No description

at line 49
protected Client getHttpClient()

No description

Return Value

Client

at line 63
$this forgetCache()

Forget the repository cache.

Return Value

$this

at line 73
getCacheKey()

No description

at line 83
float|int getCacheLifetime()

Get the cache lifetime.

Return Value

float|int

at line 88
protected cacheCallback($cacheKey, Closure $closure)

No description

Parameters

$cacheKey
Closure $closure

at line 99
protected Repository getCacheDriver()

No description

Return Value

Repository