ItemHolderValidator Uses ValidatorTrait
カート/受注の妥当性検証を行う.
Table of Contents
execute() | ProcessResult | |
---|---|---|
validate() | mixed | |
handle() | 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
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