SubscriptionDeletedEvent.php 1.0 KB

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 SubscriptionDeletedEvent
  11. *
  12. * @package OCA\DAV\Events
  13. * @since 20.0.0
  14. */
  15. class SubscriptionDeletedEvent extends Event {
  16. /**
  17. * SubscriptionDeletedEvent constructor.
  18. *
  19. * @param int $subscriptionId
  20. * @param array $subscriptionData
  21. * @param array $shares
  22. * @since 20.0.0
  23. */
  24. public function __construct(
  25. private int $subscriptionId,
  26. private array $subscriptionData,
  27. private array $shares,
  28. ) {
  29. parent::__construct();
  30. }
  31. /**
  32. * @return int
  33. * @since 20.0.0
  34. */
  35. public function getSubscriptionId(): int {
  36. return $this->subscriptionId;
  37. }
  38. /**
  39. * @return array
  40. * @since 20.0.0
  41. */
  42. public function getSubscriptionData(): array {
  43. return $this->subscriptionData;
  44. }
  45. /**
  46. * @return array
  47. * @since 20.0.0
  48. */
  49. public function getShares(): array {
  50. return $this->shares;
  51. }
  52. }