CalendarObjectRestoredEvent.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 CalendarObjectRestoredEvent extends Event {
  13. /**
  14. * @param int $calendarId
  15. * @param array $calendarData
  16. * @param array $shares
  17. * @param array $objectData
  18. * @since 22.0.0
  19. */
  20. public function __construct(
  21. private int $calendarId,
  22. private array $calendarData,
  23. private array $shares,
  24. private array $objectData,
  25. ) {
  26. parent::__construct();
  27. }
  28. /**
  29. * @return int
  30. * @since 22.0.0
  31. */
  32. public function getCalendarId(): int {
  33. return $this->calendarId;
  34. }
  35. /**
  36. * @return array
  37. * @since 22.0.0
  38. */
  39. public function getCalendarData(): array {
  40. return $this->calendarData;
  41. }
  42. /**
  43. * @return array
  44. * @since 22.0.0
  45. */
  46. public function getShares(): array {
  47. return $this->shares;
  48. }
  49. /**
  50. * @return array
  51. * @since 22.0.0
  52. */
  53. public function getObjectData(): array {
  54. return $this->objectData;
  55. }
  56. }