DeliverySettingValidator extends ItemValidator
販売種別に配送業者が設定されているかどうか.
Table of Contents
$deliveryRepository | DeliveryRepository | |
---|---|---|
__construct() | DeliverySettingValidator constructor. | mixed |
validate() | 妥当性検証を行う. | mixed |
handle() | handle | mixed |
execute() | ProcessResult | |
validate() | 妥当性検証を行う. | mixed |
handle() | 検証エラー時に後処理を行う. | mixed |
throwInvalidItemException() | mixed |
Properties
$deliveryRepository
protected
DeliveryRepository
$deliveryRepository
Methods
__construct()
DeliverySettingValidator constructor.
public
__construct(
$deliveryRepository :
DeliveryRepository
)
: mixed
Parameters
- $deliveryRepository : DeliveryRepository
Return values
mixedvalidate()
妥当性検証を行う.
protected
validate(
$item :
ItemInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $item : ItemInterface
- $context : PurchaseContext
Tags
Return values
mixedhandle()
handle
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