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