| 1 |
<?php |
| 2 |
|
| 3 |
namespace JetBackup\Queue; |
| 4 |
|
| 5 |
if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 6 |
|
| 7 |
class QueueItemSystem extends aQueueItem { |
| 8 |
|
| 9 |
const TYPE = 'type'; |
| 10 |
|
| 11 |
public function setType(int $type):void { $this->set(self::TYPE, $type); } |
| 12 |
public function getType():int { return $this->get(self::TYPE, 0); } |
| 13 |
|
| 14 |
public function getDisplay():array { |
| 15 |
return [ |
| 16 |
self::TYPE => $this->getType(), |
| 17 |
]; |
| 18 |
} |
| 19 |
} |
| 20 |
|