1
0

CalendarMovedToTrashEvent.php 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * @since 22.0.0
  11. */
  12. class CalendarMovedToTrashEvent extends Event {
  13. /**
  14. * @param int $calendarId
  15. * @param array $calendarData
  16. * @param array $shares
  17. * @since 22.0.0
  18. */
  19. public function __construct(
  20. private int $calendarId,
  21. private array $calendarData,
  22. private array $shares,
  23. ) {
  24. parent::__construct();
  25. }
  26. /**
  27. * @return int
  28. * @since 22.0.0
  29. */
  30. public function getCalendarId(): int {
  31. return $this->calendarId;
  32. }
  33. /**
  34. * @return array
  35. * @since 22.0.0
  36. */
  37. public function getCalendarData(): array {
  38. return $this->calendarData;
  39. }
  40. /**
  41. * @return array
  42. * @since 22.0.0
  43. */
  44. public function getShares(): array {
  45. return $this->shares;
  46. }
  47. }