class Deposit

Class Deposit

Constants

LIMIT_REACHED

Limit Reached identifier.

ALREADY_ADDED

Already added identifer.

Properties

null $depositNamespace Deposit Namespace.
array $depositData Deposit Data.
array $maxElements set max elements per deposit set 0 for no limit.

Methods

bool
add($id, bool $value = true)

Add a Element to Deposit.

remove($id)

Remove a Element from Deposit.

bool
allowedToAdd($id)

Check if element is allowed to add.

Details

at line line 124
bool add($id, bool $value = true)

Add a Element to Deposit.

Parameters

$id
bool $value

Return Value

bool

at line line 141
remove($id)

Remove a Element from Deposit.

Parameters

$id

at line line 157
bool allowedToAdd($id)

Check if element is allowed to add.

Parameters

$id

Return Value

bool