1 | <?php |
||
14 | abstract class AbstractCommand |
||
15 | { |
||
16 | /** |
||
17 | * @param string $command |
||
18 | * @param boolean $validateReturnValue |
||
19 | * @return array |
||
20 | * @throws RuntimeException |
||
21 | * @todo add callback as parameter |
||
22 | */ |
||
23 | public function execute($command, $validateReturnValue = true) |
||
35 | /** |
||
36 | * @throws InvalidSystemEnvironmentException |
||
37 | */ |
||
38 | public function validateSystemEnvironment() {} |
||
39 | /** |
||
40 | * @param int $return |
||
41 | * @param string $command |
||
42 | * @param mixed|array $lines |
||
43 | * @throws RuntimeException |
||
44 | */ |
||
45 | private function validateExecuteReturn($return, $command, $lines) |
||
55 | } |
||
56 |