1
0

CalendarPublishedEvent.php 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 CalendarPublishedEvent
  11. *
  12. * @package OCA\DAV\Events
  13. * @since 20.0.0
  14. */
  15. class CalendarPublishedEvent extends Event {
  16. /**
  17. * CalendarPublishedEvent constructor.
  18. *
  19. * @param int $calendarId
  20. * @param array $calendarData
  21. * @param string $publicUri
  22. * @since 20.0.0
  23. */
  24. public function __construct(
  25. private int $calendarId,
  26. private array $calendarData,
  27. private string $publicUri,
  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 string
  47. * @since 20.0.0
  48. */
  49. public function getPublicUri(): string {
  50. return $this->publicUri;
  51. }
  52. }