fix: Remove ITaskTypeWithId

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/41088/head
Marcel Klehr 7 months ago
parent f6d765fc1f
commit 8fe993c06f

@ -56,7 +56,7 @@ interface IProvider {
* provider handles
*
* @since 27.1.0
* @return class-string<T>|string
* @return class-string<T>
*/
public function getTaskType(): string;
}

@ -27,7 +27,8 @@ namespace OCP\TextProcessing;
/**
* @since 28.0.0
* @extends IProvider<ITaskType>
* @extends IProvider<T>
* @template T of ITaskType
*/
interface IProviderWithId extends IProvider {

@ -1,37 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2023 Marcel Klehr <mklehr@gmx.net>
*
* @author Marcel Klehr <mklehr@gmx.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace OCP\TextProcessing;
/**
* @since 28.0.0
*/
interface ITaskTypeWithId {
/**
* The id of this provider
* @since 28.0.0
*/
public function getId(): string;
}

@ -29,8 +29,8 @@ namespace OCP\TextProcessing;
* This is a text processing task
* @since 27.1.0
* @psalm-template T of ITaskType
* @psalm-template S as class-string<T> | string
* @psalm-template P as IProvider<T> | IProvider
* @psalm-template S as class-string<T>
* @psalm-template P as IProvider<T>
*/
final class Task implements \JsonSerializable {
protected ?int $id = null;

Loading…
Cancel
Save