| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class DatabaseCollector 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(string $sql, array $params, string $line): void |
||
| 23 | { |
||
| 24 | $this->collectQuery($sql, $params, $line); |
||
| 25 | } |
||
| 26 | |||
| 27 | private function collectQuery(string $sql, array $params, string $line): void |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getIndexData(): array |
||
| 42 | ], |
||
| 43 | ]; |
||
| 44 | } |
||
| 45 | |||
| 46 | private function reset(): void |
||
| 51 |
This check looks for private methods that have been defined, but are not used inside the class.