| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function getGenerator(array $config): GeneratorInterface |
||
| 40 | { |
||
| 41 | foreach ($this->factories as $factory) { |
||
| 42 | try { |
||
| 43 | return $factory->getGenerator($config); |
||
| 44 | } catch (UnsupportedGeneratorException $e) { |
||
|
|
|||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | throw new UnsupportedGeneratorException($config['generator'].' generator is not known'); |
||
| 49 | } |
||
| 51 |