aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Entity/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Entity/File.php')
-rw-r--r--apps/workflowengine/lib/Entity/File.php36
1 files changed, 7 insertions, 29 deletions
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php
index f9234926e4d..64d552e1737 100644
--- a/apps/workflowengine/lib/Entity/File.php
+++ b/apps/workflowengine/lib/Entity/File.php
@@ -34,50 +34,28 @@ use OCP\WorkflowEngine\IRuleMatcher;
class File implements IEntity, IDisplayText, IUrl, IIcon, IContextPortation {
private const EVENT_NAMESPACE = '\OCP\Files::';
-
- /** @var IL10N */
- protected $l10n;
- /** @var IURLGenerator */
- protected $urlGenerator;
- /** @var IRootFolder */
- protected $root;
/** @var string */
protected $eventName;
/** @var Event */
protected $event;
- /** @var IUserSession */
- private $userSession;
- /** @var ISystemTagManager */
- private $tagManager;
/** @var ?Node */
private $node;
/** @var ?IUser */
private $actingUser = null;
- /** @var IUserManager */
- private $userManager;
/** @var UserMountCache */
private $userMountCache;
- /** @var IMountManager */
- private $mountManager;
public function __construct(
- IL10N $l10n,
- IURLGenerator $urlGenerator,
- IRootFolder $root,
- IUserSession $userSession,
- ISystemTagManager $tagManager,
- IUserManager $userManager,
+ protected IL10N $l10n,
+ protected IURLGenerator $urlGenerator,
+ protected IRootFolder $root,
+ private IUserSession $userSession,
+ private ISystemTagManager $tagManager,
+ private IUserManager $userManager,
UserMountCache $userMountCache,
- IMountManager $mountManager,
+ private IMountManager $mountManager,
) {
- $this->l10n = $l10n;
- $this->urlGenerator = $urlGenerator;
- $this->root = $root;
- $this->userSession = $userSession;
- $this->tagManager = $tagManager;
- $this->userManager = $userManager;
$this->userMountCache = $userMountCache;
- $this->mountManager = $mountManager;
}
public function getName(): string {