PaymentValidator extends ItemHolderValidator
支払い方法が一致しない明細がないかどうか.
Table of Contents
$deliveryRepository | DeliveryRepository | |
---|---|---|
__construct() | PaymentProcessor constructor. | mixed |
validate() | mixed | |
getDeliveries() | mixed | |
getPayments() | ArrayCollection|\Eccube\Entity\Payment[] | |
execute() | ProcessResult | |
validate() | mixed | |
handle() | mixed | |
throwInvalidItemException() | mixed |
Properties
$deliveryRepository
protected
DeliveryRepository
$deliveryRepository
Methods
__construct()
PaymentProcessor constructor.
public
__construct(
$deliveryRepository :
DeliveryRepository
)
: mixed
Parameters
- $deliveryRepository : DeliveryRepository
Return values
mixedvalidate()
protected
validate(
$itemHolder :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
- $context : PurchaseContext
Return values
mixedgetDeliveries()
private
getDeliveries(
$SaleType :
SaleType
)
: mixed
Parameters
- $SaleType : SaleType
Return values
mixedgetPayments()
private
getPayments(
$Deliveries :
\Eccube\Entity\Delivery[]
)
: ArrayCollection|\Eccube\Entity\Payment[]
Parameters
- $Deliveries : \Eccube\Entity\Delivery[]
Return values
ArrayCollection|\Eccube\Entity\Payment[]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