4545 * @method int getStartedAt()
4646 * @method setEndedAt(int $endedAt)
4747 * @method int getEndedAt()
48- * @method setCleanup (int $cleanup )
49- * @method int getCleanup ()
48+ * @method setAllowCleanup (int $allowCleanup )
49+ * @method int getAllowCleanup ()
5050 */
5151class Task extends Entity {
5252 protected $lastUpdated;
@@ -65,17 +65,17 @@ class Task extends Entity {
6565 protected $scheduledAt;
6666 protected $startedAt;
6767 protected $endedAt;
68- protected $cleanup ;
68+ protected $allowCleanup ;
6969
7070 /**
7171 * @var string[]
7272 */
73- public static array $columns = ['id', 'last_updated', 'type', 'input', 'output', 'status', 'user_id', 'app_id', 'custom_id', 'completion_expected_at', 'error_message', 'progress', 'webhook_uri', 'webhook_method', 'scheduled_at', 'started_at', 'ended_at', 'cleanup '];
73+ public static array $columns = ['id', 'last_updated', 'type', 'input', 'output', 'status', 'user_id', 'app_id', 'custom_id', 'completion_expected_at', 'error_message', 'progress', 'webhook_uri', 'webhook_method', 'scheduled_at', 'started_at', 'ended_at', 'allow_cleanup '];
7474
7575 /**
7676 * @var string[]
7777 */
78- public static array $fields = ['id', 'lastUpdated', 'type', 'input', 'output', 'status', 'userId', 'appId', 'customId', 'completionExpectedAt', 'errorMessage', 'progress', 'webhookUri', 'webhookMethod', 'scheduledAt', 'startedAt', 'endedAt', 'cleanup '];
78+ public static array $fields = ['id', 'lastUpdated', 'type', 'input', 'output', 'status', 'userId', 'appId', 'customId', 'completionExpectedAt', 'errorMessage', 'progress', 'webhookUri', 'webhookMethod', 'scheduledAt', 'startedAt', 'endedAt', 'allowCleanup '];
7979
8080
8181 public function __construct() {
@@ -97,7 +97,7 @@ public function __construct() {
9797 $this->addType('scheduledAt', 'integer');
9898 $this->addType('startedAt', 'integer');
9999 $this->addType('endedAt', 'integer');
100- $this->addType('cleanup ', 'integer');
100+ $this->addType('allowCleanup ', 'integer');
101101 }
102102
103103 public function toRow(): array {
@@ -126,7 +126,7 @@ public static function fromPublicTask(OCPTask $task): self {
126126 'scheduledAt' => $task->getScheduledAt(),
127127 'startedAt' => $task->getStartedAt(),
128128 'endedAt' => $task->getEndedAt(),
129- 'cleanup ' => $task->getCleanup (),
129+ 'allowCleanup ' => $task->getAllowCleanup (),
130130 ]);
131131 return $taskEntity;
132132 }
@@ -149,7 +149,7 @@ public function toPublicTask(): OCPTask {
149149 $task->setScheduledAt($this->getScheduledAt());
150150 $task->setStartedAt($this->getStartedAt());
151151 $task->setEndedAt($this->getEndedAt());
152- $task->setCleanup ($this->getCleanup () !== 0);
152+ $task->setAllowCleanup ($this->getAllowCleanup () !== 0);
153153 return $task;
154154 }
155155}
0 commit comments