1 | <?php |
||
21 | abstract class Command implements ICommand { |
||
22 | |||
23 | /** |
||
24 | * (non-PHPdoc) |
||
25 | * |
||
26 | * @see \izzum\command\ICommand::execute() |
||
27 | * @throws Exception https://en.wikipedia.org/wiki/Template_method_pattern |
||
28 | */ |
||
29 | 39 | final public function execute() |
|
43 | |||
44 | /** |
||
45 | * hook method for logging etc. |
||
46 | * |
||
47 | * @param Exception $e |
||
48 | */ |
||
49 | 5 | protected function handleException($e) |
|
53 | |||
54 | /** |
||
55 | * |
||
56 | * @throws \Exception |
||
57 | */ |
||
58 | abstract protected function _execute(); |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 5 | public function toString() |
|
69 | |||
70 | 1 | public function __toString() |
|
74 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.