OnGetSellingUnitAvailableQuantityEvent
in package
implements
OnGetSellingUnitAvailableQuantityEventInterface
Interfaces, Classes and Traits
Table of Contents
- $additionalQuantity : array<string|int, mixed>
- $id : SellingUnitId
- $isPropagationStopped : bool
- $isValid : bool
- $mainQuantity : array<string|int, mixed>
- $product : ProductDataInterface
- $quantity : AvailableQuantity|null
- $requested : QuantityInterface
- $result : AvailableQuantity|null
- __construct() : mixed
- OnGetSellingUnitAvailableQuantityEvent constructor.
- addQuantity() : void
- buildQuantity() : AvailableQuantity
- id() : SellingUnitId
- invalidateQuantity() : void
- isPropagationStopped() : bool
- product() : ProductDataInterface
- requested() : QuantityInterface
- setMainQuantity() : void
- stopPropagation() : void
- getExceptionStackerWithHighestPriority() : ExceptionStacker|null
Properties
$additionalQuantity
protected
array<string|int, mixed>
$additionalQuantity
= []
$id
protected
SellingUnitId
$id
$isPropagationStopped
protected
bool
$isPropagationStopped
= false
$isValid
protected
bool
$isValid
= true
$mainQuantity
protected
array<string|int, mixed>
$mainQuantity
= []
$product
protected
ProductDataInterface
$product
$quantity
protected
AvailableQuantity|null
$quantity
$requested
protected
QuantityInterface
$requested
$result
protected
AvailableQuantity|null
$result
Methods
__construct()
OnGetSellingUnitAvailableQuantityEvent constructor.
public
__construct(SellingUnitId $id, ProductDataInterface $product, QuantityInterface $requested) : mixed
Parameters
- $id : SellingUnitId
- $product : ProductDataInterface
- $requested : QuantityInterface
Return values
mixed —addQuantity()
public
addQuantity(ModifierQuantityInterface $quantity) : void
Parameters
- $quantity : ModifierQuantityInterface
Tags
Return values
void —buildQuantity()
public
buildQuantity() : AvailableQuantity
Tags
Return values
AvailableQuantity —id()
public
id() : SellingUnitId
Tags
Return values
SellingUnitId —invalidateQuantity()
public
invalidateQuantity() : void
Tags
Return values
void —isPropagationStopped()
public
isPropagationStopped() : bool
Tags
Return values
bool —product()
public
product() : ProductDataInterface
Return values
ProductDataInterface —requested()
public
requested() : QuantityInterface
Return values
QuantityInterface —setMainQuantity()
public
setMainQuantity(ModifierQuantityInterface|null $quantity, int $priority) : void
Parameters
- $quantity : ModifierQuantityInterface|null
- $priority : int
Tags
Return values
void —stopPropagation()
public
stopPropagation() : void
Tags
Return values
void —getExceptionStackerWithHighestPriority()
private
getExceptionStackerWithHighestPriority(array<string|int, mixed> $prioritisedArray) : ExceptionStacker|null
Parameters
- $prioritisedArray : array<string|int, mixed>