summaryrefslogtreecommitdiffstats
path: root/lib/public/Federation/ICloudFederationProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Federation/ICloudFederationProvider.php')
-rw-r--r--lib/public/Federation/ICloudFederationProvider.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php
index 4c11fc20397..535f61aae89 100644
--- a/lib/public/Federation/ICloudFederationProvider.php
+++ b/lib/public/Federation/ICloudFederationProvider.php
@@ -21,6 +21,7 @@
namespace OCP\Federation;
+use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
use OCP\Federation\Exceptions\ShareNotFoundException;
/**
@@ -36,16 +37,11 @@ use OCP\Federation\Exceptions\ShareNotFoundException;
interface ICloudFederationProvider {
/**
- * ICloudFederationProvider constructor.
- *
- * @param $shareType define the share type, handled by this provider
- */
- public function __construct($shareType);
-
- /**
* get the name of the share type, handled by this provider
*
* @return string
+ *
+ * @since 14.0.0
*/
public function getShareType();
@@ -62,6 +58,8 @@ interface ICloudFederationProvider {
* @param ICloudFederationShare $share
* @return string provider specific unique ID of the share
*
+ * @throws ProviderCouldNotAddShareException
+ *
* @since 14.0.0
*/
public function shareReceived(ICloudFederationShare $share);