Total Complexity | 5 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | final class TimelineCollector implements CollectorInterface |
||
8 | { |
||
9 | use CollectorTrait; |
||
10 | |||
11 | private array $events = []; |
||
12 | |||
13 | public function getCollected(): array |
||
14 | { |
||
15 | if (!$this->isActive()) { |
||
16 | return []; |
||
17 | } |
||
18 | return $this->events; |
||
19 | } |
||
20 | |||
21 | public function collect(CollectorInterface $collector, string|int $reference, ...$data): void |
||
28 | } |
||
29 | |||
30 | private function reset(): void |
||
33 | } |
||
34 | } |
||
35 |
This check looks for private methods that have been defined, but are not used inside the class.