1 | <?php |
||
8 | final class EventDispatcherEvent extends Event |
||
9 | { |
||
10 | /** @var EventSourcedEntity */ |
||
11 | private $entity; |
||
12 | |||
13 | /** @var object */ |
||
14 | private $event; |
||
15 | |||
16 | /** |
||
17 | * @param object $event |
||
18 | */ |
||
19 | public function __construct(EventSourcedEntity $eventSourcedEntity, $event) |
||
24 | |||
25 | /** |
||
26 | * @return EventSourcedEntity |
||
27 | */ |
||
28 | public function entity() |
||
32 | |||
33 | /** |
||
34 | * @return object |
||
35 | */ |
||
36 | public function event() |
||
40 | } |
||
41 |