| Total Complexity | 9 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | final class Gii implements GiiInterface |
||
| 12 | { |
||
| 13 | private ContainerInterface $container; |
||
| 14 | private iterable $generators; |
||
| 15 | |||
| 16 | 3 | public function __construct(iterable $generators, ContainerInterface $container) |
|
| 17 | { |
||
| 18 | 3 | $this->generators = $generators; |
|
| 19 | 3 | $this->container = $container; |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | 1 | public function addGenerator(string $name, $generator): void |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $name |
||
| 29 | * |
||
| 30 | * @throws GeneratorNotFoundException |
||
| 31 | * |
||
| 32 | * @return GeneratorInterface |
||
| 33 | */ |
||
| 34 | 3 | public function getGenerator(string $name): GeneratorInterface |
|
| 55 |