CalendarObjectMovedEvent.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 CalendarObjectMovedEvent
  11. *
  12. * @package OCA\DAV\Events
  13. * @since 25.0.0
  14. */
  15. class CalendarObjectMovedEvent extends Event {
  16. /**
  17. * @since 25.0.0
  18. */
  19. public function __construct(
  20. private int $sourceCalendarId,
  21. private array $sourceCalendarData,
  22. private int $targetCalendarId,
  23. private array $targetCalendarData,
  24. private array $sourceShares,
  25. private array $targetShares,
  26. private array $objectData,
  27. ) {
  28. parent::__construct();
  29. }
  30. /**
  31. * @return int
  32. * @since 25.0.0
  33. */
  34. public function getSourceCalendarId(): int {
  35. return $this->sourceCalendarId;
  36. }
  37. /**
  38. * @return array
  39. * @since 25.0.0
  40. */
  41. public function getSourceCalendarData(): array {
  42. return $this->sourceCalendarData;
  43. }
  44. /**
  45. * @return int
  46. * @since 25.0.0
  47. */
  48. public function getTargetCalendarId(): int {
  49. return $this->targetCalendarId;
  50. }
  51. /**
  52. * @return array
  53. * @since 25.0.0
  54. */
  55. public function getTargetCalendarData(): array {
  56. return $this->targetCalendarData;
  57. }
  58. /**
  59. * @return array
  60. * @since 25.0.0
  61. */
  62. public function getSourceShares(): array {
  63. return $this->sourceShares;
  64. }
  65. /**
  66. * @return array
  67. * @since 25.0.0
  68. */
  69. public function getTargetShares(): array {
  70. return $this->targetShares;
  71. }
  72. /**
  73. * @return array
  74. * @since 25.0.0
  75. */
  76. public function getObjectData(): array {
  77. return $this->objectData;
  78. }
  79. }