| 1 | <?php |
||
| 7 | class NullCommand extends Command |
||
| 8 | { |
||
| 9 | protected $name; |
||
| 10 | |||
| 11 | protected $description; |
||
| 12 | |||
| 13 | protected $options = []; |
||
| 14 | |||
| 15 | protected $arguments = []; |
||
| 16 | |||
| 17 | function __construct($name = null) |
||
| 21 | |||
| 22 | public function setName($name) |
||
| 26 | |||
| 27 | public function setDescription($description) |
||
| 31 | |||
| 32 | public function addArgument($name, $mode = NULL, $description = '', $default = NULL) |
||
| 41 | |||
| 42 | public function addOption($name, $shortcut = NULL, $mode = NULL, $description = '', $default = NULL) |
||
| 52 | |||
| 53 | public function getName() |
||
| 57 | |||
| 58 | public function getDescription() |
||
| 62 | |||
| 63 | public function getArguments() |
||
| 67 | |||
| 68 | public function getOptions() |
||
| 72 | } |
||
| 73 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.