1 | <?php |
||
15 | trait AggregateEventsRaiseInSelfTrait |
||
16 | { |
||
17 | /** |
||
18 | * @var EventInterface[] |
||
19 | */ |
||
20 | private $events = []; |
||
21 | |||
22 | /** |
||
23 | * @var EventNameResolverInterface |
||
24 | */ |
||
25 | private $resolver; |
||
26 | |||
27 | /** |
||
28 | * @param EventNameResolverInterface $resolver |
||
29 | */ |
||
30 | 1 | protected function changeEventNameResolver(EventNameResolverInterface $resolver) |
|
34 | |||
35 | /** |
||
36 | * @return EventNameResolverInterface |
||
37 | */ |
||
38 | 3 | private function getEventNameResolver() |
|
46 | |||
47 | /** |
||
48 | * @param EventInterface $event |
||
49 | */ |
||
50 | 3 | private function raiseInSelf(EventInterface $event) |
|
60 | |||
61 | /** |
||
62 | * @param EventInterface $event |
||
63 | */ |
||
64 | 3 | protected function raise(EventInterface $event) |
|
69 | |||
70 | /** |
||
71 | * @return EventInterface[] |
||
72 | */ |
||
73 | 2 | public function pullEvents() |
|
80 | } |
||
81 |