Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | public function handle(CommandInterface $command) |
||
32 | { |
||
33 | if (!$this->supports(get_class($command))) { |
||
34 | throw new InvalidArgumentException( |
||
35 | sprintf( |
||
36 | 'The command must be an instance of "%s". "%s" given.', |
||
37 | $this->getSupportedCommandClassName(), |
||
38 | get_class($command) |
||
39 | ) |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | return $this->execute($command); |
||
44 | } |
||
45 | |||
55 |