| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | final class Gii implements GiiInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param array<string, GeneratorInterface> $generators |
||
| 13 | */ |
||
| 14 | 4 | public function __construct(private array $generators) |
|
| 19 | ); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function addGenerator(GeneratorInterface $generator): void |
||
| 23 | { |
||
| 24 | $this->generators[$generator::getId()] = $generator; |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function getGenerator(string $id): GeneratorInterface |
|
| 34 | } |
||
| 35 | |||
| 36 | 2 | public function getGenerators(): array |
|
| 41 |