StockMultipleValidator extends ItemHolderValidator
カート/受注の妥当性検証を行う.
Table of Contents
$productClassRepository | ProductClassRepository | |
---|---|---|
__construct() | StockProcessor constructor. | mixed |
validate() | mixed | |
execute() | ProcessResult | |
validate() | mixed | |
handle() | mixed | |
throwInvalidItemException() | mixed |
Properties
$productClassRepository
protected
ProductClassRepository
$productClassRepository
Methods
__construct()
StockProcessor constructor.
public
__construct(
$productClassRepository :
ProductClassRepository
)
: mixed
Parameters
- $productClassRepository : ProductClassRepository
Return values
mixedvalidate()
public
validate(
$itemHolder :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
- $context : PurchaseContext
Tags
Return values
mixedexecute()
public
final execute(
$itemHolder :
ItemHolderInterface
, $context :
PurchaseContext
)
: ProcessResult
Parameters
- $itemHolder : ItemHolderInterface
- $context : PurchaseContext
Return values
ProcessResultvalidate()
protected
abstract validate(
$itemHolder :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
- $context : PurchaseContext
Tags
Return values
mixedhandle()
protected
handle(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedthrowInvalidItemException()
protected
throwInvalidItemException(
$errorCode :
[, $ProductClass :
ProductClass
= null ]
[, $warning :
mixed
= false ]
)
: mixed
Parameters
- $errorCode :
- $ProductClass : ProductClass = null
- $warning : mixed = false