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 | * PostPersistEvent constructor. |
||
36 | * |
||
37 | * @param EventSourcedAggregateRootInterface $aggregate |
||
38 | * @param EventStream $eventStream |
||
39 | */ |
||
40 | public function __construct(EventSourcedAggregateRootInterface $aggregate, EventStream $eventStream) |
||
47 | |||
48 | /** |
||
49 | * @return EventSourcedAggregateRootInterface |
||
50 | */ |
||
51 | public function aggregate() |
||
55 | |||
56 | /** |
||
57 | * @return EventStream |
||
58 | */ |
||
59 | public function eventStream() |
||
63 | } |
||
64 |