CalendarDeletedEvent.php 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 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. * Class CalendarDeletedEvent
  11. *
  12. * @package OCA\DAV\Events
  13. * @since 20.0.0
  14. */
  15. class CalendarDeletedEvent extends Event {
  16. /**
  17. * CalendarDeletedEvent constructor.
  18. *
  19. * @param int $calendarId
  20. * @param array $calendarData
  21. * @param array $shares
  22. * @since 20.0.0
  23. */
  24. public function __construct(
  25. private int $calendarId,
  26. private array $calendarData,
  27. private array $shares,
  28. ) {
  29. parent::__construct();
  30. }
  31. /**
  32. * @return int
  33. * @since 20.0.0
  34. */
  35. public function getCalendarId(): int {
  36. return $this->calendarId;
  37. }
  38. /**
  39. * @return array
  40. * @since 20.0.0
  41. */
  42. public function getCalendarData(): array {
  43. return $this->calendarData;
  44. }
  45. /**
  46. * @return array
  47. * @since 20.0.0
  48. */
  49. public function getShares(): array {
  50. return $this->shares;
  51. }
  52. }