PurchaseFlowTest_FailValidator extends ItemValidator
明細単位の妥当性検証.
Table of Contents
$errorMessage | ||
---|---|---|
__construct() | PurchaseFlowTest_FailProcessor constructor. | mixed |
validate() | 妥当性検証を行う. | mixed |
execute() | ProcessResult | |
validate() | 妥当性検証を行う. | mixed |
handle() | 検証エラー時に後処理を行う. | mixed |
throwInvalidItemException() | mixed |
Properties
$errorMessage
private
mixed
$errorMessage
Methods
__construct()
PurchaseFlowTest_FailProcessor constructor.
public
__construct(
$errorMessage :
)
: mixed
Parameters
Return values
mixedvalidate()
妥当性検証を行う.
protected
validate(
$item :
ItemInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $item : ItemInterface
- $context : PurchaseContext
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