aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Events/CardMovedEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Events/CardMovedEvent.php')
-rw-r--r--apps/dav/lib/Events/CardMovedEvent.php31
1 files changed, 9 insertions, 22 deletions
diff --git a/apps/dav/lib/Events/CardMovedEvent.php b/apps/dav/lib/Events/CardMovedEvent.php
index adeb513c5d9..be69a046537 100644
--- a/apps/dav/lib/Events/CardMovedEvent.php
+++ b/apps/dav/lib/Events/CardMovedEvent.php
@@ -17,32 +17,19 @@ use OCP\EventDispatcher\Event;
* @since 27.0.0
*/
class CardMovedEvent extends Event {
- private int $sourceAddressBookId;
- private array $sourceAddressBookData;
- private int $targetAddressBookId;
- private array $targetAddressBookData;
- private array $sourceShares;
- private array $targetShares;
- private array $objectData;
-
/**
* @since 27.0.0
*/
- public function __construct(int $sourceAddressBookId,
- array $sourceAddressBookData,
- int $targetAddressBookId,
- array $targetAddressBookData,
- array $sourceShares,
- array $targetShares,
- array $objectData) {
+ public function __construct(
+ private int $sourceAddressBookId,
+ private array $sourceAddressBookData,
+ private int $targetAddressBookId,
+ private array $targetAddressBookData,
+ private array $sourceShares,
+ private array $targetShares,
+ private array $objectData,
+ ) {
parent::__construct();
- $this->sourceAddressBookId = $sourceAddressBookId;
- $this->sourceAddressBookData = $sourceAddressBookData;
- $this->targetAddressBookId = $targetAddressBookId;
- $this->targetAddressBookData = $targetAddressBookData;
- $this->sourceShares = $sourceShares;
- $this->targetShares = $targetShares;
- $this->objectData = $objectData;
}
/**