summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Config/CachedMountFileInfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Config/CachedMountFileInfo.php')
-rw-r--r--lib/private/Files/Config/CachedMountFileInfo.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/private/Files/Config/CachedMountFileInfo.php b/lib/private/Files/Config/CachedMountFileInfo.php
index 7fdc26f7d53..71a6ddb9ea9 100644
--- a/lib/private/Files/Config/CachedMountFileInfo.php
+++ b/lib/private/Files/Config/CachedMountFileInfo.php
@@ -30,12 +30,21 @@ class CachedMountFileInfo extends CachedMountInfo implements ICachedMountFileInf
/** @var string */
private $internalPath;
- public function __construct(IUser $user, $storageId, $rootId, $mountPoint, $mountId, $rootInternalPath, $internalPath) {
- parent::__construct($user, $storageId, $rootId, $mountPoint, $mountId, $rootInternalPath);
+ public function __construct(
+ IUser $user,
+ int $storageId,
+ int $rootId,
+ string $mountPoint,
+ ?int $mountId,
+ string $mountProvider,
+ string $rootInternalPath,
+ string $internalPath
+ ) {
+ parent::__construct($user, $storageId, $rootId, $mountPoint, $mountProvider, $mountId, $rootInternalPath);
$this->internalPath = $internalPath;
}
- public function getInternalPath() {
+ public function getInternalPath(): string {
if ($this->getRootInternalPath()) {
return substr($this->internalPath, strlen($this->getRootInternalPath()) + 1);
} else {
@@ -43,7 +52,7 @@ class CachedMountFileInfo extends CachedMountInfo implements ICachedMountFileInf
}
}
- public function getPath() {
+ public function getPath(): string {
return $this->getMountPoint() . $this->getInternalPath();
}
}