ItemValidatorTest_FailValidator extends ItemValidator
明細単位の妥当性検証.
Table of Contents
$handleCalled | ||
---|---|---|
validate() | 妥当性検証を行う. | mixed |
handle() | 検証エラー時に後処理を行う. | mixed |
execute() | ProcessResult | |
validate() | 妥当性検証を行う. | mixed |
handle() | 検証エラー時に後処理を行う. | mixed |
throwInvalidItemException() | mixed |
Properties
$handleCalled
public
mixed
$handleCalled
= false
Methods
validate()
妥当性検証を行う.
protected
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
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