コード例 #1
0
ファイル: PrePersistEvent.php プロジェクト: cubiche/cubiche
 /**
  * PrePersistEvent constructor.
  *
  * @param EventSourcedAggregateRootInterface $aggregate
  */
 public function __construct(EventSourcedAggregateRootInterface $aggregate)
 {
     parent::__construct();
     $this->aggregate = $aggregate;
 }
コード例 #2
0
ファイル: DomainEvent.php プロジェクト: cubiche/cubiche
 /**
  * EntityDomainEvent constructor.
  *
  * @param IdInterface $aggregateId
  */
 public function __construct(IdInterface $aggregateId)
 {
     parent::__construct();
     $this->aggregateId = $aggregateId;
 }