1 | <?php |
||
8 | trait EventRecorderCapabilities |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $recordedEvents = []; |
||
14 | |||
15 | /** |
||
16 | * Release and clear recorded events |
||
17 | * |
||
18 | * @return array |
||
19 | */ |
||
20 | public function releaseEvents() |
||
28 | |||
29 | /** |
||
30 | * Erase all events |
||
31 | */ |
||
32 | public function eraseEvents() |
||
36 | |||
37 | /** |
||
38 | * Record an event. |
||
39 | * |
||
40 | * @param mixed $event |
||
41 | */ |
||
42 | protected function record($event) |
||
46 | } |
||
47 |