OnSellingUnitIdCreateListener
in package
Table of Contents
- $dispatcher : EventDispatcherInterface
- $service : ReadServiceInterface
- __construct() : mixed
- OnSellingUnitIdCreateListener constructor.
- __invoke() : OnSellingUnitIdCreateEventInterface
- parseValue() : array<string|int, mixed>
- validateAttribute() : void
Properties
$dispatcher
protected
EventDispatcherInterface
$dispatcher
$service
protected
ReadServiceInterface
$service
Methods
__construct()
OnSellingUnitIdCreateListener constructor.
public
__construct(ReadServiceInterface $service, EventDispatcherInterface $dispatcher) : mixed
Parameters
- $service : ReadServiceInterface
- $dispatcher : EventDispatcherInterface
Return values
mixed —__invoke()
public
__invoke(OnSellingUnitIdCreateEventInterface $event) : OnSellingUnitIdCreateEventInterface
Parameters
- $event : OnSellingUnitIdCreateEventInterface
Return values
OnSellingUnitIdCreateEventInterface —parseValue()
protected
parseValue(string $value) : array<string|int, mixed>
Parameters
- $value : string
Return values
array<string|int, mixed> —validateAttribute()
protected
validateAttribute(AttributeModifierIdentifier $identifier, int $productId) : void
Parameters
- $identifier : AttributeModifierIdentifier
- $productId : int