diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-19 13:15:14 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-07-19 13:15:14 +0200 |
commit | 7389567c7d05ba994533b7273cba1e5818a20b94 (patch) | |
tree | d105ae50b58c3836de514969f65525e5c37ebb96 /lib/public/TextProcessing | |
parent | d63c122ec0071cc1d0417eaa5eb1a85e41290263 (diff) | |
download | nextcloud-server-7389567c7d05ba994533b7273cba1e5818a20b94.tar.gz nextcloud-server-7389567c7d05ba994533b7273cba1e5818a20b94.zip |
Remove Task::factory method
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/TextProcessing')
-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); - } } |