1
0

AbstractTextToImageEvent.php 579 B

123456789101112131415161718192021222324252627282930313233343536
  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\TextToImage\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\TextToImage\Task;
  10. /**
  11. * @since 28.0.0
  12. * @deprecated 30.0.0
  13. */
  14. abstract class AbstractTextToImageEvent extends Event {
  15. /**
  16. * @since 28.0.0
  17. */
  18. public function __construct(
  19. private Task $task,
  20. ) {
  21. parent::__construct();
  22. }
  23. /**
  24. * @return Task
  25. * @since 28.0.0
  26. */
  27. public function getTask(): Task {
  28. return $this->task;
  29. }
  30. }