Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class MetricsGeneratorRegistry |
||
11 | { |
||
12 | /** |
||
13 | * @var MetricsGeneratorInterface[] |
||
14 | */ |
||
15 | private $generators = []; |
||
16 | |||
17 | 33 | public function registerMetricsGenerator(MetricsGeneratorInterface $generator): void |
|
18 | { |
||
19 | 33 | $this->generators[] = $generator; |
|
20 | 33 | } |
|
21 | |||
22 | /** |
||
23 | * @return MetricsGeneratorInterface[] |
||
24 | */ |
||
25 | 27 | public function getMetricsGenerators(): array |
|
28 | } |
||
29 | } |
||
30 |