BatchManager
Class Batch
Table of Contents
Methods
- __construct() : mixed
- calculateCostPrice() : float
- Calculate product cost price by quantity.
- getAvailableStoreCollection() : EO_StoreBatch_Collection
- Get current available store product batches collection.
- getProductId() : int
- getStoreCollection() : EO_StoreBatch_Collection
- Get store product batches collection.
Methods
__construct()
public
__construct(int $productId) : mixed
Parameters
- $productId : int
calculateCostPrice()
Calculate product cost price by quantity.
public
calculateCostPrice(float $quantity, int $storeId[, string|null $currency = null ]) : float
Parameters
- $quantity : float
- $storeId : int
- $currency : string|null = null
Tags
Return values
floatgetAvailableStoreCollection()
Get current available store product batches collection.
public
getAvailableStoreCollection(int $storeId) : EO_StoreBatch_Collection
Parameters
- $storeId : int
Tags
Return values
EO_StoreBatch_CollectiongetProductId()
public
getProductId() : int
Return values
intgetStoreCollection()
Get store product batches collection.
public
getStoreCollection([array<string|int, mixed>|null $filter = null ]) : EO_StoreBatch_Collection
Parameters
- $filter : array<string|int, mixed>|null = null