.htaccess
1 year ago
ResumableTask.php
5 months ago
ResumableTaskItem.php
1 year ago
index.html
1 year ago
web.config
1 year ago
ResumableTaskItem.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup\ResumableTask; |
| 4 | |
| 5 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 6 | |
| 7 | class ResumableTaskItem { |
| 8 | private $_data=null; |
| 9 | private $_result=null; |
| 10 | private bool $_status=false; |
| 11 | |
| 12 | public function setData($data) { $this->_data = $data; } |
| 13 | public function getData() { return $this->_data; } |
| 14 | |
| 15 | public function setResult($result) { $this->_result = $result; } |
| 16 | public function getResult() { return $this->_result; } |
| 17 | |
| 18 | public function setCompleted(bool $status) { $this->_status = !!$status; } |
| 19 | public function isCompleted():bool { return $this->_status; } |
| 20 | } |