| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class ServiceCollector implements ServiceCollectorInterface, IndexCollectorInterface |
||
| 10 | { |
||
| 11 | use CollectorTrait; |
||
| 12 | |||
| 13 | private array $items = []; |
||
| 14 | |||
| 15 | 2 | public function getCollected(): array |
|
| 16 | { |
||
| 17 | 2 | return $this->items; |
|
| 18 | } |
||
| 19 | |||
| 20 | 7 | public function collect( |
|
| 45 | ]; |
||
| 46 | 2 | } |
|
| 47 | |||
| 48 | 1 | #[ArrayShape(['totalServices' => 'int'])] |
|
| 49 | public function getIndexData(): array |
||
| 50 | { |
||
| 51 | return [ |
||
| 52 | 1 | 'totalServices' => count($this->items), |
|
| 53 | ]; |
||
| 54 | } |
||
| 55 | |||
| 56 | 1 | private function reset(): void |
|
| 59 | 1 | } |
|
| 60 | } |
||
| 61 |
This check looks for private methods that have been defined, but are not used inside the class.