diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-05-07 13:04:44 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-05-14 11:38:41 +0200 |
commit | f2ab6cb0a9af462df5d8dd00f6487db2efcdea66 (patch) | |
tree | 557569a9df9d5933bdd0fe5bb2ee1ed6f0cd97e4 /lib/private/TaskProcessing/Db/Task.php | |
parent | 4d9a0eab5f4df480ebdf72d39e73c626583a2f16 (diff) | |
download | nextcloud-server-f2ab6cb0a9af462df5d8dd00f6487db2efcdea66.tar.gz nextcloud-server-f2ab6cb0a9af462df5d8dd00f6487db2efcdea66.zip |
fix: fix psalm issues
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TaskProcessing/Db/Task.php')
-rw-r--r-- | lib/private/TaskProcessing/Db/Task.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/TaskProcessing/Db/Task.php b/lib/private/TaskProcessing/Db/Task.php index 11892a14960..9293f4dc236 100644 --- a/lib/private/TaskProcessing/Db/Task.php +++ b/lib/private/TaskProcessing/Db/Task.php @@ -43,8 +43,8 @@ use OCP\TaskProcessing\Task as OCPTask; * @method string|null getUserId() * @method setAppId(string $type) * @method string getAppId() - * @method setIdentifier(string $customId) - * @method string getIdentifier() + * @method setCustomId(string $customId) + * @method string getCustomId() * @method setCompletionExpectedAt(null|\DateTime $completionExpectedAt) * @method null|\DateTime getCompletionExpectedAt() * @method setErrorMessage(null|string $error) @@ -110,7 +110,7 @@ class Task extends Entity { 'errorMessage' => $task->getErrorMessage(), 'userId' => $task->getUserId(), 'appId' => $task->getAppId(), - 'customId' => $task->getIdentifier(), + 'customId' => $task->getCustomId(), 'completionExpectedAt' => $task->getCompletionExpectedAt(), 'progress' => $task->getProgress(), ]); @@ -122,7 +122,7 @@ class Task extends Entity { * @throws \JsonException */ public function toPublicTask(): OCPTask { - $task = new OCPTask($this->getType(), json_decode($this->getInput(), true, 512, JSON_THROW_ON_ERROR), $this->getAppId(), $this->getuserId(), $this->getIdentifier()); + $task = new OCPTask($this->getType(), json_decode($this->getInput(), true, 512, JSON_THROW_ON_ERROR), $this->getAppId(), $this->getuserId(), $this->getCustomId()); $task->setId($this->getId()); $task->setStatus($this->getStatus()); $task->setOutput(json_decode($this->getOutput(), true, 512, JSON_THROW_ON_ERROR)); |