StoreInfo
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- getCalculatedSumPrice() : float
- Return sum of store based on products price
- getStoreId() : int
- getStoreName() : string
- Return name of store <br>if name was already loaded by <b>loadStoreName</b> method, it returns it <br>otherwise it will load name throw <b>loadStoreName</b> and returns it
- loadStoreName() : void
- Load stores names with <b>$storeIds</b> id
- setStoreName() : void
Methods
__construct()
public
__construct(int $storeId) : mixed
Parameters
- $storeId : int
getCalculatedSumPrice()
Return sum of store based on products price
public
abstract getCalculatedSumPrice() : float
Return values
floatgetStoreId()
public
getStoreId() : int
Return values
intgetStoreName()
Return name of store <br>if name was already loaded by <b>loadStoreName</b> method, it returns it <br>otherwise it will load name throw <b>loadStoreName</b> and returns it
public
getStoreName() : string
Return values
stringloadStoreName()
Load stores names with <b>$storeIds</b> id
public
static loadStoreName(int ...$storeIds) : void
Parameters
- $storeIds : int
Tags
setStoreName()
public
static setStoreName(int $storeId, string $storeName) : void
Parameters
- $storeId : int
- $storeName : string