aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/lib/Events/MoveToTrashEvent.php')
-rw-r--r--apps/files_trashbin/lib/Events/MoveToTrashEvent.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
index ff54c67e178..0d776b606b1 100644
--- a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
+++ b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -21,12 +22,10 @@ class MoveToTrashEvent extends Event {
/** @var bool */
private $moveToTrashBin;
- /** @var Node */
- private $node;
-
- public function __construct(Node $node) {
+ public function __construct(
+ private Node $node,
+ ) {
$this->moveToTrashBin = true;
- $this->node = $node;
}
/**