2023-06-15 10:30:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-05-23 09:26:56 +02:00
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-06-15 10:30:04 +02:00
|
|
|
*/
|
2023-07-14 15:59:50 +02:00
|
|
|
namespace OCP\TextProcessing\Events;
|
2023-06-15 10:30:04 +02:00
|
|
|
|
|
|
|
use OCP\EventDispatcher\Event;
|
2023-07-14 15:59:50 +02:00
|
|
|
use OCP\TextProcessing\Task;
|
2023-06-15 10:30:04 +02:00
|
|
|
|
|
|
|
/**
|
2023-07-07 13:46:03 +02:00
|
|
|
* @since 27.1.0
|
2024-07-26 11:20:46 +02:00
|
|
|
* @deprecated 30.0.0
|
2023-06-15 10:30:04 +02:00
|
|
|
*/
|
2023-07-14 15:59:50 +02:00
|
|
|
abstract class AbstractTextProcessingEvent extends Event {
|
2023-06-15 10:30:04 +02:00
|
|
|
/**
|
2023-07-07 13:46:03 +02:00
|
|
|
* @since 27.1.0
|
2023-06-15 10:30:04 +02:00
|
|
|
*/
|
|
|
|
public function __construct(
|
2023-07-14 15:59:50 +02:00
|
|
|
private Task $task,
|
2023-06-15 10:30:04 +02:00
|
|
|
) {
|
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2023-07-14 15:59:50 +02:00
|
|
|
* @return Task
|
2023-07-07 13:46:03 +02:00
|
|
|
* @since 27.1.0
|
2023-06-15 10:30:04 +02:00
|
|
|
*/
|
2023-07-14 15:59:50 +02:00
|
|
|
public function getTask(): Task {
|
2023-06-15 13:22:16 +02:00
|
|
|
return $this->task;
|
2023-06-15 10:30:04 +02:00
|
|
|
}
|
|
|
|
}
|