aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2024-05-03 12:23:59 +0200
committerMarcel Klehr <mklehr@gmx.net>2024-05-14 11:38:40 +0200
commitb150d779f33ac2a417b5dcc5f451412f32552388 (patch)
tree28d6b7d043c0c5e8831c584f4db709ed41a1a314 /lib/public
parentc9ea5375d87a90a5c25a5858aed6fdcb1b035a9f (diff)
downloadnextcloud-server-b150d779f33ac2a417b5dcc5f451412f32552388.tar.gz
nextcloud-server-b150d779f33ac2a417b5dcc5f451412f32552388.zip
refactor: rename getTaskType to getTaskTypeId
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/TaskProcessing/IProvider.php2
-rw-r--r--lib/public/TaskProcessing/Task.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/TaskProcessing/IProvider.php b/lib/public/TaskProcessing/IProvider.php
index 5768294fd96..dd20fdd8a70 100644
--- a/lib/public/TaskProcessing/IProvider.php
+++ b/lib/public/TaskProcessing/IProvider.php
@@ -51,7 +51,7 @@ interface IProvider {
* @since 30.0.0
* @return string
*/
- public function getTaskType(): string;
+ public function getTaskTypeId(): string;
/**
* @return int The expected average runtime of a task in seconds
diff --git a/lib/public/TaskProcessing/Task.php b/lib/public/TaskProcessing/Task.php
index 58c420a9992..4bddd06162f 100644
--- a/lib/public/TaskProcessing/Task.php
+++ b/lib/public/TaskProcessing/Task.php
@@ -82,7 +82,7 @@ final class Task implements \JsonSerializable {
* @since 30.0.0
*/
final public function __construct(
- protected readonly string $taskType,
+ protected readonly string $taskTypeId,
protected array $input,
protected readonly string $appId,
protected readonly ?string $userId,
@@ -93,8 +93,8 @@ final class Task implements \JsonSerializable {
/**
* @since 30.0.0
*/
- final public function getTaskType(): string {
- return $this->taskType;
+ final public function getTaskTypeId(): string {
+ return $this->taskTypeId;
}
/**