Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ChainGeneratorFactory implements GeneratorFactoryInterface |
||
14 | { |
||
15 | /** |
||
16 | * Array of generator factories. |
||
17 | * |
||
18 | * @var GeneratorFactoryInterface[] |
||
19 | */ |
||
20 | private $factories = []; |
||
21 | |||
22 | /** |
||
23 | * Add factory. |
||
24 | * |
||
25 | * @param GeneratorFactoryInterface $factory |
||
26 | * |
||
27 | * @return $this |
||
28 | */ |
||
29 | public function addFactory(GeneratorFactoryInterface $factory): self |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getGenerator(array $config): GeneratorInterface |
||
51 |