Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | public function processCommand() |
||
21 | { |
||
22 | if (!$this->hasInstanceAction()) { |
||
23 | throw new InvalidCommandException( |
||
24 | "No valid instance for callback in dispatcher command " . |
||
25 | "[" . print_r($this->getCommand(), true) . "]" |
||
|
|||
26 | ); |
||
27 | } |
||
28 | |||
29 | $return = $this->callMethod(); |
||
30 | $this->getCommand()->setReturn($return); |
||
31 | } |
||
50 |