Copied!

BeforeCreateCartEvent

BeforeCreateCartEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateCartEvent.php : 22
public __construct(CartCreateStruct $cartCreateStruct[, CartInterface|null $cartResult = null ])

Parameters

Name Type Default value Description
$cartCreateStruct CartCreateStruct - -
$cartResult CartInterface|null null -

publicgetCartCreateStruct()

BeforeCreateCartEvent.php : 28
public getCartCreateStruct() : CartCreateStruct

Return values

CartCreateStruct

publicgetCartResult()

BeforeCreateCartEvent.php : 33
public getCartResult() : CartInterface

Return values

CartInterface

publichasCartResult()

BeforeCreateCartEvent.php : 49
public hasCartResult() : bool

Return values

bool

publicsetCartResult()

BeforeCreateCartEvent.php : 44
public setCartResult(CartInterface|null $cartResult) : void

Parameters

Name Type Default value Description
$cartResult CartInterface|null - -