diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-19 13:15:14 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-08-09 10:05:23 +0200 |
commit | 00e3fb143f42ff9506ef0d5f58ce2acaa8712449 (patch) | |
tree | 697bc0a10383ab709d282bb0aa48d3795dd11d97 /lib/public | |
parent | 96ec6ff5eaa28bd7e8f53d84b266c0fb709cf205 (diff) | |
download | nextcloud-server-00e3fb143f42ff9506ef0d5f58ce2acaa8712449.tar.gz nextcloud-server-00e3fb143f42ff9506ef0d5f58ce2acaa8712449.zip |
Remove Task::factory method
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 7389567c7d05ba994533b7273cba1e5818a20b94)
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/TextProcessing/Task.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/public/TextProcessing/Task.php b/lib/public/TextProcessing/Task.php index 668ca6d09c4..446e414cb04 100644 --- a/lib/public/TextProcessing/Task.php +++ b/lib/public/TextProcessing/Task.php @@ -218,21 +218,4 @@ final class Task implements \JsonSerializable { 'identifier' => $this->getIdentifier(), ]; } - - /** - * @param string $type - * @param string $input - * @param string|null $userId - * @param string $appId - * @param string $identifier - * @return Task - * @throws \InvalidArgumentException - * @since 27.1.0 - */ - final public static function factory(string $type, string $input, ?string $userId, string $appId, string $identifier = ''): Task { - if (!in_array($type, self::TYPES)) { - throw new \InvalidArgumentException('Unknown task type'); - } - return new Task($type, $input, $appId, $userId, $identifier); - } } |