aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Storage/Storage.php')
-rw-r--r--lib/private/Files/Storage/Storage.php37
1 files changed, 7 insertions, 30 deletions
diff --git a/lib/private/Files/Storage/Storage.php b/lib/private/Files/Storage/Storage.php
index 3b14b1b84e3..aa17c12b309 100644
--- a/lib/private/Files/Storage/Storage.php
+++ b/lib/private/Files/Storage/Storage.php
@@ -22,46 +22,23 @@ use OCP\Files\Storage\IStorage;
* All paths passed to the storage are relative to the storage and should NOT have a leading slash.
*/
interface Storage extends IStorage, ILockingStorage {
- /**
- * @param string $path
- * @param ?IStorage $storage
- */
- public function getCache($path = '', $storage = null): ICache;
+ public function getCache(string $path = '', ?IStorage $storage = null): ICache;
- /**
- * @param string $path
- * @param ?IStorage $storage
- */
- public function getScanner($path = '', $storage = null): IScanner;
+ public function getScanner(string $path = '', ?IStorage $storage = null): IScanner;
- /**
- * @param string $path
- * @param ?IStorage $storage
- */
- public function getWatcher($path = '', $storage = null): IWatcher;
+ public function getWatcher(string $path = '', ?IStorage $storage = null): IWatcher;
- /**
- * @param ?IStorage $storage
- */
- public function getPropagator($storage = null): IPropagator;
+ public function getPropagator(?IStorage $storage = null): IPropagator;
- /**
- * @param ?IStorage $storage
- */
- public function getUpdater($storage = null): IUpdater;
+ public function getUpdater(?IStorage $storage = null): IUpdater;
public function getStorageCache(): \OC\Files\Cache\Storage;
- /**
- * @param string $path
- */
- public function getMetaData($path): ?array;
+ public function getMetaData(string $path): ?array;
/**
* Get the contents of a directory with metadata
*
- * @param string $directory
- *
* The metadata array will contain the following fields
*
* - name
@@ -72,5 +49,5 @@ interface Storage extends IStorage, ILockingStorage {
* - storage_mtime
* - permissions
*/
- public function getDirectoryContent($directory): \Traversable;
+ public function getDirectoryContent(string $directory): \Traversable;
}