OnGetSellingUnitStockInfoEventListener
in package
Table of Contents
- $dispatcher : EventDispatcherInterface
- __construct() : mixed
- OnGetSellingUnitStockInfoEventListener constructor.
- __invoke() : OnGetSellingUnitStockInfoEventInterface
- createStock() : SellingUnitStockInterface
Properties
$dispatcher
protected
EventDispatcherInterface
$dispatcher
Methods
__construct()
OnGetSellingUnitStockInfoEventListener constructor.
public
__construct(EventDispatcherInterface $dispatcher) : mixed
Parameters
- $dispatcher : EventDispatcherInterface
Return values
mixed —__invoke()
public
__invoke(OnGetSellingUnitStockInfoEventInterface $event) : OnGetSellingUnitStockInfoEventInterface
Parameters
Return values
OnGetSellingUnitStockInfoEventInterface —createStock()
protected
createStock(SellingUnitId $id, ProductDataInterface $data, QuantityInterface $requestedQuantity) : SellingUnitStockInterface
Parameters
- $id : SellingUnitId
- $data : ProductDataInterface
- $requestedQuantity : QuantityInterface