| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 4 | public function getGenerator(string $id): GeneratorInterface |
|
| 28 | 1 | { |
|
| 29 | if (!isset($this->generators[$id])) { |
||
| 30 | 3 | var_dump($this->generators); |
|
|
|
|||
| 31 | 3 | exit(); |
|
| 32 | 1 | throw new GeneratorNotFoundException('Generator "' . $id . '" not found'); |
|
| 33 | } |
||
| 34 | |||
| 35 | 3 | return $this->generators[$id]; |
|
| 36 | 1 | } |
|
| 38 |