class Core \ PersistentAccountType


Allows an AccountType to have data stored persistently, for example storing the supported currencies - so that they do not have to be refetched every time.


Method Summary

Name Description
__construct(AccountType $exchange, Connection $db)
getSupportedCurrencies($force = false) Quickly get all supported currencies for this account. May be cached.
storeSupportedCurrencies($currencies, Logger $logger)

public function __construct(AccountType $exchange, Connection $db)


public function getSupportedCurrencies($force = false)

Quickly get all supported currencies for this account. May be cached.

Parameters:
force - if true, force a refresh
Defaults:
force = false

public function storeSupportedCurrencies($currencies, Logger $logger)