/** * {@inheritdoc} */ public function applyCommittedEvent(Event $event) { $id = $event->getEventProviderId(); if (isset($this->entityEventProviders[$id->toString()])) { $eventProvider = $this->entityEventProviders[$id->toString()]; $eventProvider->applyCommittedEvent($event); } else { $this->handleEvent($event, $event->getVersion()); } }
/** * @param UuidInterface $eventProviderId * @param CartEntry $entry */ public function __construct(UuidInterface $eventProviderId, CartEntry $entry) { parent::__construct($eventProviderId); $this->entry = $entry; }
/** * @param UuidInterface $eventProviderId * @param CustomerAddress $customerAddress */ public function __construct(UuidInterface $eventProviderId, CustomerAddress $customerAddress) { parent::__construct($eventProviderId); $this->customerAddress = $customerAddress; }
/** * @param UuidInterface $eventProviderId * @param UuidInterface $cartId */ public function __construct(UuidInterface $eventProviderId, UuidInterface $cartId) { parent::__construct($eventProviderId); $this->cartId = $cartId; }
/** * @param UuidInterface $eventProviderId * @param CustomerName $customerName */ public function __construct(UuidInterface $eventProviderId, CustomerName $customerName) { parent::__construct($eventProviderId); $this->customerName = $customerName; }