PurchaseFlow
Table of Contents
$flowType | string | |
---|---|---|
$itemPreprocessors | ArrayCollection|\Eccube\Service\PurchaseFlow\ItemPreprocessor[] | |
$itemHolderPreprocessors | ArrayCollection|\Eccube\Service\PurchaseFlow\ItemHolderPreprocessor[] | |
$itemValidators | ArrayCollection|\Eccube\Service\PurchaseFlow\ItemValidator[] | |
$itemHolderValidators | ArrayCollection|\Eccube\Service\PurchaseFlow\ItemHolderValidator[] | |
$itemHolderPostValidators | ArrayCollection|\Eccube\Service\PurchaseFlow\ItemHolderPostValidator[] | |
$discountProcessors | ArrayCollection|\Eccube\Service\PurchaseFlow\DiscountProcessor[] | |
$purchaseProcessors | ArrayCollection|\Eccube\Service\PurchaseFlow\PurchaseProcessor[] | |
__construct() | mixed | |
setFlowType() | mixed | |
setPurchaseProcessors() | mixed | |
setItemValidators() | mixed | |
setItemHolderValidators() | mixed | |
setItemPreprocessors() | mixed | |
setItemHolderPreprocessors() | mixed | |
setItemHolderPostValidators() | mixed | |
setDiscountProcessors() | mixed | |
validate() | mixed | |
prepare() | 購入フロー仮確定処理. | mixed |
commit() | 購入フロー確定処理. | mixed |
rollback() | 購入フロー仮確定取り消し処理. | mixed |
addPurchaseProcessor() | mixed | |
addItemHolderPreprocessor() | mixed | |
addItemPreprocessor() | mixed | |
addItemValidator() | mixed | |
addItemHolderValidator() | mixed | |
addItemHolderPostValidator() | mixed | |
addDiscountProcessor() | mixed | |
calculateTotal() | mixed | |
calculateSubTotal() | mixed | |
calculateDeliveryFeeTotal() | mixed | |
calculateDiscount() | mixed | |
calculateCharge() | mixed | |
calculateTax() | mixed | |
calculateAll() | mixed | |
dump() | PurchaseFlow をツリー表示します. | string |
__toString() | string |
Properties
$flowType
protected
string
$flowType
$itemPreprocessors
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\ItemPreprocessor[]
$itemPreprocessors
$itemHolderPreprocessors
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\ItemHolderPreprocessor[]
$itemHolderPreprocessors
$itemValidators
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\ItemValidator[]
$itemValidators
$itemHolderValidators
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\ItemHolderValidator[]
$itemHolderValidators
$itemHolderPostValidators
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\ItemHolderPostValidator[]
$itemHolderPostValidators
$discountProcessors
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\DiscountProcessor[]
$discountProcessors
$purchaseProcessors
protected
ArrayCollection|\Eccube\Service\PurchaseFlow\PurchaseProcessor[]
$purchaseProcessors
Methods
__construct()
public
__construct(
)
: mixed
Return values
mixedsetFlowType()
public
setFlowType(
$flowType :
mixed
)
: mixed
Parameters
- $flowType : mixed
Return values
mixedsetPurchaseProcessors()
public
setPurchaseProcessors(
$processors :
ArrayCollection
)
: mixed
Parameters
- $processors : ArrayCollection
Return values
mixedsetItemValidators()
public
setItemValidators(
$itemValidators :
ArrayCollection
)
: mixed
Parameters
- $itemValidators : ArrayCollection
Return values
mixedsetItemHolderValidators()
public
setItemHolderValidators(
$itemHolderValidators :
ArrayCollection
)
: mixed
Parameters
- $itemHolderValidators : ArrayCollection
Return values
mixedsetItemPreprocessors()
public
setItemPreprocessors(
$itemPreprocessors :
ArrayCollection
)
: mixed
Parameters
- $itemPreprocessors : ArrayCollection
Return values
mixedsetItemHolderPreprocessors()
public
setItemHolderPreprocessors(
$itemHolderPreprocessors :
ArrayCollection
)
: mixed
Parameters
- $itemHolderPreprocessors : ArrayCollection
Return values
mixedsetItemHolderPostValidators()
public
setItemHolderPostValidators(
$itemHolderPostValidators :
ArrayCollection
)
: mixed
Parameters
- $itemHolderPostValidators : ArrayCollection
Return values
mixedsetDiscountProcessors()
public
setDiscountProcessors(
$discountProcessors :
ArrayCollection
)
: mixed
Parameters
- $discountProcessors : ArrayCollection
Return values
mixedvalidate()
public
validate(
$itemHolder :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
- $context : PurchaseContext
Return values
mixedprepare()
購入フロー仮確定処理.
public
prepare(
$target :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $target : ItemHolderInterface
- $context : PurchaseContext
Tags
Return values
mixedcommit()
購入フロー確定処理.
public
commit(
$target :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $target : ItemHolderInterface
- $context : PurchaseContext
Tags
Return values
mixedrollback()
購入フロー仮確定取り消し処理.
public
rollback(
$target :
ItemHolderInterface
, $context :
PurchaseContext
)
: mixed
Parameters
- $target : ItemHolderInterface
- $context : PurchaseContext
Return values
mixedaddPurchaseProcessor()
public
addPurchaseProcessor(
$processor :
PurchaseProcessor
)
: mixed
Parameters
- $processor : PurchaseProcessor
Return values
mixedaddItemHolderPreprocessor()
public
addItemHolderPreprocessor(
$holderPreprocessor :
ItemHolderPreprocessor
)
: mixed
Parameters
- $holderPreprocessor : ItemHolderPreprocessor
Return values
mixedaddItemPreprocessor()
public
addItemPreprocessor(
$itemPreprocessor :
ItemPreprocessor
)
: mixed
Parameters
- $itemPreprocessor : ItemPreprocessor
Return values
mixedaddItemValidator()
public
addItemValidator(
$itemValidator :
ItemValidator
)
: mixed
Parameters
- $itemValidator : ItemValidator
Return values
mixedaddItemHolderValidator()
public
addItemHolderValidator(
$itemHolderValidator :
ItemHolderValidator
)
: mixed
Parameters
- $itemHolderValidator : ItemHolderValidator
Return values
mixedaddItemHolderPostValidator()
public
addItemHolderPostValidator(
$itemHolderValidator :
ItemHolderPostValidator
)
: mixed
Parameters
- $itemHolderValidator : ItemHolderPostValidator
Return values
mixedaddDiscountProcessor()
public
addDiscountProcessor(
$discountProcessor :
DiscountProcessor
)
: mixed
Parameters
- $discountProcessor : DiscountProcessor
Return values
mixedcalculateTotal()
protected
calculateTotal(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedcalculateSubTotal()
protected
calculateSubTotal(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedcalculateDeliveryFeeTotal()
protected
calculateDeliveryFeeTotal(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedcalculateDiscount()
protected
calculateDiscount(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedcalculateCharge()
protected
calculateCharge(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedcalculateTax()
protected
calculateTax(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixedcalculateAll()
protected
calculateAll(
$itemHolder :
ItemHolderInterface
)
: mixed
Parameters
- $itemHolder : ItemHolderInterface
Return values
mixeddump()
PurchaseFlow をツリー表示します.
public
dump(
)
: string
Return values
string__toString()
public
__toString(
)
: string