Copied!

IncreaseProductAvailabilityEvent

IncreaseProductAvailabilityEvent.php : 15
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

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

Parameters

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

publicgetAmount()

IncreaseProductAvailabilityEvent.php : 43
public getAmount() : int

Return values

int

publicgetProduct()

IncreaseProductAvailabilityEvent.php : 38
public getProduct() : ProductInterface

Return values

ProductInterface

publicgetProductAvailability()

IncreaseProductAvailabilityEvent.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().