PriceChangeValidator extends ItemValidator
販売価格の変更検知.
Table of Contents
validate() | 妥当性検証を行う. | mixed |
---|---|---|
execute() | ProcessResult | |
validate() | 妥当性検証を行う. | mixed |
handle() | 検証エラー時に後処理を行う. | mixed |
throwInvalidItemException() | mixed |
Methods
validate()
妥当性検証を行う.
public
validate(
$item :
ItemInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $item : ItemInterface
- $context : PurchaseContext
Tags
Return values
mixedexecute()
public
final execute(
$item :
ItemInterface
, $context :
PurchaseContext
)
: ProcessResult
Parameters
- $item : ItemInterface
- $context : PurchaseContext
Return values
ProcessResultvalidate()
妥当性検証を行う.
protected
abstract validate(
$item :
ItemInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $item : ItemInterface
- $context : PurchaseContext
Return values
mixedhandle()
検証エラー時に後処理を行う.
protected
handle(
$item :
ItemInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $item : ItemInterface
- $context : PurchaseContext
Return values
mixedthrowInvalidItemException()
protected
throwInvalidItemException(
$errorCode :
[, $ProductClass :
ProductClass
= null ]
[, $warning :
mixed
= false ]
)
: mixed
Parameters
- $errorCode :
- $ProductClass : ProductClass = null
- $warning : mixed = false