PurchaseContext extends SplObjectStorage
PurchaseFlowの実行中コンテキスト.
Table of Contents
ORDER_FLOW | 'order' | |
---|---|---|
SHOPPING_FLOW | 'shopping' | |
CART_FLOW | 'cart' | |
$user | ||
$originHolder | ||
$flowType | ||
__construct() | mixed | |
getOriginHolder() | PurchaseFlow実行前の{@link ItemHolderInterface}を取得. | ItemHolderInterface |
getUser() | 会員情報を取得. | Customer |
setFlowType() | mixed | |
isOrderFlow() | mixed | |
isShoppingFlow() | mixed | |
isCartFlow() | mixed |
Constants
ORDER_FLOW
public
mixed
$ORDER_FLOW
= 'order'
SHOPPING_FLOW
public
mixed
$SHOPPING_FLOW
= 'shopping'
CART_FLOW
public
mixed
$CART_FLOW
= 'cart'
Properties
$user
private
mixed
$user
$originHolder
private
mixed
$originHolder
$flowType
private
mixed
$flowType
Methods
__construct()
public
__construct(
[ $originHolder :
ItemHolderInterface
= null ]
[, $user :
Customer
= null ]
)
: mixed
Parameters
- $originHolder : ItemHolderInterface = null
- $user : Customer = null
Return values
mixedgetOriginHolder()
PurchaseFlow実行前の{@link ItemHolderInterface}を取得.
public
getOriginHolder(
)
: ItemHolderInterface
Return values
ItemHolderInterfacegetUser()
会員情報を取得.
public
getUser(
)
: Customer
Return values
CustomersetFlowType()
public
setFlowType(
$flowType :
mixed
)
: mixed
Parameters
- $flowType : mixed
Return values
mixedisOrderFlow()
public
isOrderFlow(
)
: mixed
Return values
mixedisShoppingFlow()
public
isShoppingFlow(
)
: mixed
Return values
mixedisCartFlow()
public
isCartFlow(
)
: mixed