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