aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-05 17:51:45 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-12 11:42:10 +0200
commit4bbcbc520620b59c19f058fa79e107ee1a8ce275 (patch)
tree6e8500208955af3d909d91440327f81b72bebe08 /lib/public/Files
parentcb1b366baf75da4c578bc534884eefa7f6b4b3d2 (diff)
downloadnextcloud-server-4bbcbc520620b59c19f058fa79e107ee1a8ce275.tar.gz
nextcloud-server-4bbcbc520620b59c19f058fa79e107ee1a8ce275.zip
feat: Make `ISharedStorage` public API and reuse where possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Storage/ISharedStorage.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/Files/Storage/ISharedStorage.php b/lib/public/Files/Storage/ISharedStorage.php
new file mode 100644
index 00000000000..836c4aefcdb
--- /dev/null
+++ b/lib/public/Files/Storage/ISharedStorage.php
@@ -0,0 +1,26 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCP\Files\Storage;
+
+use OCP\Share\IShare;
+
+/**
+ * Interface for a storage that is based on a file share
+ *
+ * @since 30.0.0
+ */
+interface ISharedStorage extends IStorage {
+ /**
+ * The the associated share
+ *
+ * @return IShare
+ * @since 30.0.0
+ */
+ public function getShare(): IShare;
+}