1
0

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