1
0

AbstractTranscriptionEvent.php 920 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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\SpeechToText\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\Files\File;
  10. /**
  11. * @since 27.0.0
  12. * @deprecated 30.0.0
  13. */
  14. abstract class AbstractTranscriptionEvent extends Event {
  15. /**
  16. * @since 27.0.0
  17. */
  18. public function __construct(
  19. private int $fileIdId,
  20. private ?File $file,
  21. private ?string $userId,
  22. private string $appId,
  23. ) {
  24. parent::__construct();
  25. }
  26. /**
  27. * @since 27.0.0
  28. */
  29. public function getFileId(): int {
  30. return $this->fileIdId;
  31. }
  32. /**
  33. * @since 27.0.0
  34. */
  35. public function getFile(): ?File {
  36. return $this->file;
  37. }
  38. /**
  39. * @since 27.0.0
  40. */
  41. public function getUserId(): ?string {
  42. return $this->userId;
  43. }
  44. /**
  45. * @since 27.0.0
  46. */
  47. public function getAppId(): string {
  48. return $this->appId;
  49. }
  50. }