/** * PrePersistEvent constructor. * * @param EventSourcedAggregateRootInterface $aggregate */ public function __construct(EventSourcedAggregateRootInterface $aggregate) { parent::__construct(); $this->aggregate = $aggregate; }
/** * EntityDomainEvent constructor. * * @param IdInterface $aggregateId */ public function __construct(IdInterface $aggregateId) { parent::__construct(); $this->aggregateId = $aggregateId; }