Copied!

DecreaseProductAvailabilityEvent

DecreaseProductAvailabilityEvent.php : 15
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

DecreaseProductAvailabilityEvent.php : 23
public __construct(AvailabilityInterface $productAvailability, ProductInterface $product, int $amount)

Parameters

Name Type Default value Description
$productAvailability AvailabilityInterface - -
$product ProductInterface - -
$amount int - -

publicgetAmount()

DecreaseProductAvailabilityEvent.php : 43
public getAmount() : int

Return values

int

publicgetProduct()

DecreaseProductAvailabilityEvent.php : 38
public getProduct() : ProductInterface

Return values

ProductInterface

publicgetProductAvailability()

DecreaseProductAvailabilityEvent.php : 33
public getProductAvailability() : AvailabilityInterface

Return values

AvailabilityInterface

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().