interface DriverInterface

Methods

bool
create(array $params)

Create a new currency.

array
all()

Get all currencies.

mixed
find(string $code, int $active = 1)

Get given currency from storage.

int
update(string $code, array $attributes, DateTime $timestamp = null)

Update given currency.

int
delete($code)

Remove given currency from storage.

Details

at line 16
bool create(array $params)

Create a new currency.

Parameters

array $params

Return Value

bool

at line 23
array all()

Get all currencies.

Return Value

array

at line 33
mixed find(string $code, int $active = 1)

Get given currency from storage.

Parameters

string $code
int $active

Return Value

mixed

at line 44
int update(string $code, array $attributes, DateTime $timestamp = null)

Update given currency.

Parameters

string $code
array $attributes
DateTime $timestamp

Return Value

int

at line 53
int delete($code)

Remove given currency from storage.

Parameters

$code

Return Value

int