1
0

CardMovedEvent.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 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 CardMovedEvent
  11. *
  12. * @package OCA\DAV\Events
  13. * @since 27.0.0
  14. */
  15. class CardMovedEvent extends Event {
  16. /**
  17. * @since 27.0.0
  18. */
  19. public function __construct(
  20. private int $sourceAddressBookId,
  21. private array $sourceAddressBookData,
  22. private int $targetAddressBookId,
  23. private array $targetAddressBookData,
  24. private array $sourceShares,
  25. private array $targetShares,
  26. private array $objectData,
  27. ) {
  28. parent::__construct();
  29. }
  30. /**
  31. * @return int
  32. * @since 27.0.0
  33. */
  34. public function getSourceAddressBookId(): int {
  35. return $this->sourceAddressBookId;
  36. }
  37. /**
  38. * @return array
  39. * @since 27.0.0
  40. */
  41. public function getSourceAddressBookData(): array {
  42. return $this->sourceAddressBookData;
  43. }
  44. /**
  45. * @return int
  46. * @since 27.0.0
  47. */
  48. public function getTargetAddressBookId(): int {
  49. return $this->targetAddressBookId;
  50. }
  51. /**
  52. * @return array
  53. * @since 27.0.0
  54. */
  55. public function getTargetAddressBookData(): array {
  56. return $this->targetAddressBookData;
  57. }
  58. /**
  59. * @return array
  60. * @since 27.0.0
  61. */
  62. public function getSourceShares(): array {
  63. return $this->sourceShares;
  64. }
  65. /**
  66. * @return array
  67. * @since 27.0.0
  68. */
  69. public function getTargetShares(): array {
  70. return $this->targetShares;
  71. }
  72. /**
  73. * @return array
  74. * @since 27.0.0
  75. */
  76. public function getObjectData(): array {
  77. return $this->objectData;
  78. }
  79. }