ProductStockService
in package
implements
ProductStockServiceInterface
Interfaces, Classes and Traits
Table of Contents
- STOCK_CHECK = 'STOCK_CHECK'
- $constant_reader : mixed
- __construct() : mixed
- isChangeProductStock() : bool
- The method identify if the stock should be changed with the given parameters
- isCombinationConfigChangeProductStock() : bool
- The method identify if and product stock should be changed with it has the given configuration
- valueOf() : mixed
Constants
STOCK_CHECK
public
mixed
STOCK_CHECK
= 'STOCK_CHECK'
Properties
$constant_reader
protected
mixed
$constant_reader
Methods
__construct()
public
__construct([ConstantReader $constant_reader = null ]) : mixed
Parameters
- $constant_reader : ConstantReader = null
Return values
mixed —isChangeProductStock()
The method identify if the stock should be changed with the given parameters
public
isChangeProductStock(int $combinationConfigurationType, int $combinationId, string $attributeFilename) : bool
Parameters
- $combinationConfigurationType : int
-
The combination configuration of the current product
- $combinationId : int
-
the combination if relative to the current product
- $attributeFilename : string
-
The filename attribute related to the product
Return values
bool —isCombinationConfigChangeProductStock()
The method identify if and product stock should be changed with it has the given configuration
public
isCombinationConfigChangeProductStock(int $combinationQtdType, bool $isCombination) : bool
Parameters
- $combinationQtdType : int
-
The product combination quantity configuration
- $isCombination : bool
-
is a combination?
Return values
bool —valueOf()
protected
valueOf(mixed $constant[, mixed $defaultValue = null ]) : mixed
Parameters
- $constant : mixed
- $defaultValue : mixed = null