Pool
Table of Contents
Methods
- __construct() : mixed
- addItem() : mixed
- delete() : mixed
- deleteByStore() : mixed
- get() : float|null
- Returns any variable by its name. Null if variable is not set.
- getByStore() : float|null
- Returns any variable by its name. Null if variable is not set.
- getItems() : array<string|int, mixed>
- getQuantities() : array<string|int, mixed>
- getQuantitiesWithStore() : array<string|int, mixed>
- set() : mixed
- setByStore() : mixed
Methods
__construct()
public
__construct() : mixed
addItem()
public
addItem(mixed $code, mixed $item) : mixed
Parameters
- $code : mixed
- $item : mixed
delete()
public
delete(mixed $code) : mixed
Parameters
- $code : mixed
deleteByStore()
public
deleteByStore(mixed $code, mixed $storeId) : mixed
Parameters
- $code : mixed
- $storeId : mixed
get()
Returns any variable by its name. Null if variable is not set.
public
get(mixed $code) : float|null
Parameters
- $code : mixed
Return values
float|nullgetByStore()
Returns any variable by its name. Null if variable is not set.
public
getByStore(mixed $code, mixed $storeId) : float|null
Parameters
- $code : mixed
- $storeId : mixed
Return values
float|nullgetItems()
public
getItems() : array<string|int, mixed>
Return values
array<string|int, mixed>getQuantities()
public
getQuantities() : array<string|int, mixed>
Return values
array<string|int, mixed>getQuantitiesWithStore()
public
getQuantitiesWithStore() : array<string|int, mixed>
Return values
array<string|int, mixed>set()
public
set(mixed $code, mixed $quantity) : mixed
Parameters
- $code : mixed
- $quantity : mixed
setByStore()
public
setByStore(mixed $code, mixed $storeId, mixed $quantity) : mixed
Parameters
- $code : mixed
- $storeId : mixed
- $quantity : mixed