diff options
Diffstat (limited to 'apps/dav/lib/Events/CalendarObjectRestoredEvent.php')
-rw-r--r-- | apps/dav/lib/Events/CalendarObjectRestoredEvent.php | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/apps/dav/lib/Events/CalendarObjectRestoredEvent.php b/apps/dav/lib/Events/CalendarObjectRestoredEvent.php index bfd64be72b5..99d752de466 100644 --- a/apps/dav/lib/Events/CalendarObjectRestoredEvent.php +++ b/apps/dav/lib/Events/CalendarObjectRestoredEvent.php @@ -15,18 +15,6 @@ use OCP\EventDispatcher\Event; */ class CalendarObjectRestoredEvent extends Event { - /** @var int */ - private $calendarId; - - /** @var array */ - private $calendarData; - - /** @var array */ - private $shares; - - /** @var array */ - private $objectData; - /** * @param int $calendarId * @param array $calendarData @@ -34,15 +22,13 @@ class CalendarObjectRestoredEvent extends Event { * @param array $objectData * @since 22.0.0 */ - public function __construct(int $calendarId, - array $calendarData, - array $shares, - array $objectData) { + public function __construct( + private int $calendarId, + private array $calendarData, + private array $shares, + private array $objectData, + ) { parent::__construct(); - $this->calendarId = $calendarId; - $this->calendarData = $calendarData; - $this->shares = $shares; - $this->objectData = $objectData; } /** |