aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/TextProcessing/Events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/TextProcessing/Events')
-rw-r--r--lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php24
-rw-r--r--lib/public/TextProcessing/Events/TaskFailedEvent.php5
-rw-r--r--lib/public/TextProcessing/Events/TaskSuccessfulEvent.php5
3 files changed, 14 insertions, 20 deletions
diff --git a/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php b/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php
index 329889e61f0..8b944254020 100644
--- a/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php
+++ b/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php
@@ -3,25 +3,8 @@
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/>.
- *
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\TextProcessing\Events;
@@ -30,13 +13,14 @@ use OCP\TextProcessing\Task;
/**
* @since 27.1.0
+ * @deprecated 30.0.0
*/
abstract class AbstractTextProcessingEvent extends Event {
/**
* @since 27.1.0
*/
public function __construct(
- private Task $task
+ private Task $task,
) {
parent::__construct();
}
diff --git a/lib/public/TextProcessing/Events/TaskFailedEvent.php b/lib/public/TextProcessing/Events/TaskFailedEvent.php
index f9765e362dc..dfdb9137f95 100644
--- a/lib/public/TextProcessing/Events/TaskFailedEvent.php
+++ b/lib/public/TextProcessing/Events/TaskFailedEvent.php
@@ -1,11 +1,16 @@
<?php
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
namespace OCP\TextProcessing\Events;
use OCP\TextProcessing\Task;
/**
* @since 27.1.0
+ * @deprecated 30.0.0
*/
class TaskFailedEvent extends AbstractTextProcessingEvent {
/**
diff --git a/lib/public/TextProcessing/Events/TaskSuccessfulEvent.php b/lib/public/TextProcessing/Events/TaskSuccessfulEvent.php
index df4d2ba6227..0716f4d45c6 100644
--- a/lib/public/TextProcessing/Events/TaskSuccessfulEvent.php
+++ b/lib/public/TextProcessing/Events/TaskSuccessfulEvent.php
@@ -1,9 +1,14 @@
<?php
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
namespace OCP\TextProcessing\Events;
/**
* @since 27.1.0
+ * @deprecated 30.0.0
*/
class TaskSuccessfulEvent extends AbstractTextProcessingEvent {
}