Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | trait TraitAggregate |
||
11 | { |
||
12 | /** @var Events */ |
||
13 | protected $events; |
||
14 | |||
15 | private function initEvents(): void |
||
16 | { |
||
17 | if (is_null($this->events)) { |
||
18 | $this->events = new Events(); |
||
19 | } |
||
20 | } |
||
21 | |||
22 | public function pullEvents(): Events |
||
26 | } |
||
27 | |||
28 | protected function pushEvent(Event $event): void |
||
34 |