AbstractTextProcessingEvent.php 586 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\TextProcessing\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\TextProcessing\Task;
  10. /**
  11. * @since 27.1.0
  12. * @deprecated 30.0.0
  13. */
  14. abstract class AbstractTextProcessingEvent extends Event {
  15. /**
  16. * @since 27.1.0
  17. */
  18. public function __construct(
  19. private Task $task
  20. ) {
  21. parent::__construct();
  22. }
  23. /**
  24. * @return Task
  25. * @since 27.1.0
  26. */
  27. public function getTask(): Task {
  28. return $this->task;
  29. }
  30. }