| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 34 | public function run(CommandInterface $command) |
||
| 35 | { |
||
| 36 | $mapping = $this->register(); |
||
| 37 | $method = $mapping[get_class($command)]; |
||
| 38 | |||
| 39 | if (!method_exists($this, $method)) { |
||
| 40 | throw new MethodNotFoundException($command, $this, $method); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->$method($command); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |