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