ItemHolderPostValidator Uses ValidatorTrait
カート/受注の妥当性検証を行う.
Table of Contents
execute() | ProcessResult | |
---|---|---|
validate() | mixed | |
throwInvalidItemException() | mixed |
Methods
execute()
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
mixedthrowInvalidItemException()
protected
throwInvalidItemException(
$errorCode :
[, $ProductClass :
ProductClass
= null ]
[, $warning :
mixed
= false ]
)
: mixed
Parameters
- $errorCode :
- $ProductClass : ProductClass = null
- $warning : mixed = false