| 1 | <?php |
||
| 4 | class Shell extends Task |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @var string |
||
| 8 | */ |
||
| 9 | protected $command; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $arguments = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return mixed |
||
| 18 | */ |
||
| 19 | public function run() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $command |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | public function setCommand($command) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getCommand() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param mixed $argument |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function addArgument($argument) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function getArguments() |
||
| 63 | |||
| 64 | } |