Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class CycleCollector implements CollectorInterface, IndexCollectorInterface |
||
12 | { |
||
13 | use CollectorTrait; |
||
14 | |||
15 | private array $queries = []; |
||
16 | |||
17 | public function getCollected(): array |
||
18 | { |
||
19 | return $this->queries; |
||
20 | } |
||
21 | |||
22 | public function collect(...$args): void |
||
23 | { |
||
24 | $this->queries[] = $args; |
||
25 | } |
||
26 | |||
27 | private function collectQuery(string $sql, array $params, string $line): void |
||
34 | ]; |
||
35 | } |
||
36 | |||
37 | public function getIndexData(): array |
||
38 | { |
||
39 | return [ |
||
40 | 'cycle' => [ |
||
41 | 'total' => $this->queries, |
||
42 | ], |
||
43 | ]; |
||
44 | } |
||
45 | |||
46 | private function reset(): void |
||
49 | } |
||
50 | } |
||
51 |
This check looks for private methods that have been defined, but are not used inside the class.