ProductStockService

Implements \ProductStockServiceInterface

package

Default

Methods

__construct

__construct(\ConstantReader $constant_reader = null) 

Arguments

$constant_reader

\ConstantReader

The method identify if the stock should be changed with the given parameters

isChangeProductStock(integer $combinationConfigurationType, integer $combinationId, string $attributeFilename) : boolean

Arguments

$combinationConfigurationType

integer

The combination configuration of the current product

$combinationId

integer

the combination if relative to the current product

$attributeFilename

string

The filename attribute related to the product

Response

boolean

The method identify if and product stock should be changed with it has the given configuration

isCombinationConfigChangeProductStock(integer $combinationQtdType, boolean $isCombination) : boolean

Arguments

$combinationQtdType

integer

The product combination quantity configuration

$isCombination

boolean

is a combination?

Response

boolean

valueOf

valueOf( $constant,  $defaultValue = null) 

Arguments

$constant

$defaultValue

Constants

STOCK_CHECK

STOCK_CHECK

Properties

constant_reader

constant_reader : 

Type(s)