| 1 | <?php |
||
| 11 | abstract class AbstractTask implements TaskInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var |
||
| 15 | */ |
||
| 16 | private $currentWorkingDirectory; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var stdClass |
||
| 20 | */ |
||
| 21 | private $config; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return stdClass |
||
| 25 | */ |
||
| 26 | public function getConfig() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param stdClass $config |
||
| 33 | */ |
||
| 34 | public function setConfig(stdClass $config) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getCurrentWorkingDirectory() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $currentWorkingDirectory |
||
| 49 | */ |
||
| 50 | public function setCurrentWorkingDirectory($currentWorkingDirectory) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param bool $dryRun |
||
| 57 | * @return void |
||
| 58 | */ |
||
| 59 | abstract public function execute($dryRun = false); |
||
| 60 | } |
||
| 61 |