summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-26 16:34:19 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-04 12:44:28 +0200
commit7f1141f7e9805005c813d5ffd39ebdfa715dd290 (patch)
tree1c07ab639b5c90795882cb7fc02a2f7b7a17d0ee /lib/public
parent18676a8ee2c72a0239305e135dd04099280e3e43 (diff)
downloadnextcloud-server-7f1141f7e9805005c813d5ffd39ebdfa715dd290.tar.gz
nextcloud-server-7f1141f7e9805005c813d5ffd39ebdfa715dd290.zip
Make the MountManager strict
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Mount/IMountManager.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/public/Files/Mount/IMountManager.php b/lib/public/Files/Mount/IMountManager.php
index 2b6458bf7c8..da40419d9e1 100644
--- a/lib/public/Files/Mount/IMountManager.php
+++ b/lib/public/Files/Mount/IMountManager.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -45,7 +46,7 @@ interface IMountManager {
* @param string $mountPoint
* @since 8.2.0
*/
- public function removeMount($mountPoint);
+ public function removeMount(string $mountPoint);
/**
* Change the location of a mount
@@ -54,7 +55,7 @@ interface IMountManager {
* @param string $target
* @since 8.2.0
*/
- public function moveMount($mountPoint, $target);
+ public function moveMount(string $mountPoint, string $target);
/**
* Find the mount for $path
@@ -63,7 +64,7 @@ interface IMountManager {
* @return \OCP\Files\Mount\IMountPoint
* @since 8.2.0
*/
- public function find($path);
+ public function find(string $path): IMountPoint;
/**
* Find all mounts in $path
@@ -72,7 +73,7 @@ interface IMountManager {
* @return \OCP\Files\Mount\IMountPoint[]
* @since 8.2.0
*/
- public function findIn($path);
+ public function findIn(string $path): array;
/**
* Remove all registered mounts
@@ -88,13 +89,13 @@ interface IMountManager {
* @return \OCP\Files\Mount\IMountPoint[]
* @since 8.2.0
*/
- public function findByStorageId($id);
+ public function findByStorageId(string $id): array;
/**
* @return \OCP\Files\Mount\IMountPoint[]
* @since 8.2.0
*/
- public function getAll();
+ public function getAll(): array;
/**
* Find mounts by numeric storage id
@@ -103,5 +104,5 @@ interface IMountManager {
* @return \OCP\Files\Mount\IMountPoint[]
* @since 8.2.0
*/
- public function findByNumericId($id);
+ public function findByNumericId(int $id): array;
}