Copied!

BeforeUpdateCartMetadataEvent

BeforeUpdateCartMetadataEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdateCartMetadataEvent.php : 24
public __construct(CartInterface $cart, CartMetadataUpdateStruct $cartUpdateStruct[, CartInterface|null $cartResult = null ])

Parameters

Name Type Default value Description
$cart CartInterface - -
$cartUpdateStruct CartMetadataUpdateStruct - -
$cartResult CartInterface|null null -

publicgetCart()

BeforeUpdateCartMetadataEvent.php : 34
public getCart() : CartInterface

Return values

CartInterface

publicgetCartResult()

BeforeUpdateCartMetadataEvent.php : 44
public getCartResult() : CartInterface

Return values

CartInterface

publicgetCartUpdateStruct()

BeforeUpdateCartMetadataEvent.php : 39
public getCartUpdateStruct() : CartMetadataUpdateStruct

Return values

CartMetadataUpdateStruct

publichasCartResult()

BeforeUpdateCartMetadataEvent.php : 60
public hasCartResult() : bool

Return values

bool

publicsetCartResult()

BeforeUpdateCartMetadataEvent.php : 55
public setCartResult(CartInterface|null $cartResult) : void

Parameters

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