| 1 | <?php |
||
| 3 | class PatchStatus |
||
| 4 | { |
||
| 5 | /** @var string $patchClass class name of patch */ |
||
| 6 | public $patchClass; |
||
| 7 | |||
| 8 | /** @var bool $applied true if this patch is applied, false if it is needed */ |
||
| 9 | public $applied = true; |
||
| 10 | |||
| 11 | /** @var string[] $tasks tasks that need to be run */ |
||
| 12 | public $tasks = array(); |
||
| 13 | |||
| 14 | /** @var string[] $files files that need to be writable */ |
||
| 15 | public $files = array(); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * PatchStatus constructor. |
||
| 19 | * @param XoopsUpgrade $patch |
||
| 20 | */ |
||
| 21 | public function __construct(XoopsUpgrade $patch) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Add a task that needs to be run to the tasks property |
||
| 36 | * |
||
| 37 | * @param string $task task name |
||
| 38 | */ |
||
| 39 | protected function addTask($task) |
||
| 44 | } |
||
| 45 |