Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 2 | public function mapCommandToHandler(string $commandFQCN): MethodToCall |
|
33 | { |
||
34 | 2 | if (! array_key_exists($commandFQCN, $this->mapping)) { |
|
35 | 1 | throw FailedToMapCommand::className($commandFQCN); |
|
36 | } |
||
37 | |||
38 | 1 | return new MethodToCall( |
|
39 | 1 | $this->mapping[$commandFQCN][0], |
|
40 | 1 | $this->mapping[$commandFQCN][1] |
|
41 | ); |
||
44 |