| 1 | <?php |
||
| 22 | class PostPersistEvent extends DomainEvent |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var EventSourcedAggregateRootInterface |
||
| 26 | */ |
||
| 27 | protected $aggregate; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var EventStream |
||
| 31 | */ |
||
| 32 | protected $eventStream; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * PrePersistEvent constructor. |
||
| 36 | * |
||
| 37 | * @param EventSourcedAggregateRootInterface $aggregate |
||
| 38 | */ |
||
| 39 | public function __construct(EventSourcedAggregateRootInterface $aggregate, EventStream $eventStream) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return EventSourcedAggregateRootInterface |
||
| 49 | */ |
||
| 50 | public function aggregate() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return EventStream |
||
| 57 | */ |
||
| 58 | public function eventStream() |
||
| 62 | } |
||
| 63 |