SellingUnitStock
in package
implements
SellingUnitStockInterface
Interfaces, Classes and Traits
Table of Contents
- $availableQuantity : AvailableQuantity
- $dispatcher : EventDispatcherInterface
- $id : SellingUnitId
- $product : ProductDataInterface
- $requested : QuantityInterface
- $reservedQuantity : ReservedQuantity
- __construct() : mixed
- SellingUnitStock constructor.
- availableQuantity() : AvailableQuantity
- getQuantityByModifier() : QuantityInterface
Properties
$availableQuantity
protected
AvailableQuantity
$availableQuantity
$dispatcher
protected
EventDispatcherInterface
$dispatcher
$id
protected
SellingUnitId
$id
$product
protected
ProductDataInterface
$product
$requested
protected
QuantityInterface
$requested
$reservedQuantity
protected
ReservedQuantity
$reservedQuantity
Methods
__construct()
SellingUnitStock constructor.
public
__construct(SellingUnitId $id, ProductDataInterface $product, QuantityInterface $requested, EventDispatcherInterface $dispatcher) : mixed
Parameters
- $id : SellingUnitId
- $product : ProductDataInterface
- $requested : QuantityInterface
- $dispatcher : EventDispatcherInterface
Return values
mixed —availableQuantity()
public
availableQuantity() : AvailableQuantity
Tags
Return values
AvailableQuantity —getQuantityByModifier()
public
getQuantityByModifier(ModifierIdentifierInterface $id) : QuantityInterface