| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | protected function addCommandFor(...$keys): CommandFactory |
||
| 12 | { |
||
| 13 | if ($this->commandsBuilder === null) { |
||
| 14 | $this->commandsBuilder = new CommandsBuilder(); |
||
| 15 | } |
||
| 16 | |||
| 17 | $factory = new CommandFactory(...$keys); |
||
| 18 | $this->commandsBuilder->addCommandFactory($factory); |
||
| 19 | |||
| 20 | return $factory; |
||
| 21 | } |
||
| 23 |