aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2018-08-24 15:21:04 +0200
committerGeorg Ehrke <developer@georgehrke.com>2018-10-08 01:25:20 +0200
commit1c6f666bbfc46b9092312c81f82a5e0cbe59fc18 (patch)
treeecb9d6ae2662d28b167574d2533f7917c7c2e20e /lib/public
parent4c47ec005f31e10b55af1bec277c6c0d011e4c28 (diff)
downloadnextcloud-server-1c6f666bbfc46b9092312c81f82a5e0cbe59fc18.tar.gz
nextcloud-server-1c6f666bbfc46b9092312c81f82a5e0cbe59fc18.zip
adjust Calendar resource / room interfaces to use class implementation
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Calendar/Resource/IManager.php12
-rw-r--r--lib/public/Calendar/Room/IManager.php12
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/public/Calendar/Resource/IManager.php b/lib/public/Calendar/Resource/IManager.php
index 8542e13eba7..b59cb6c797a 100644
--- a/lib/public/Calendar/Resource/IManager.php
+++ b/lib/public/Calendar/Resource/IManager.php
@@ -34,20 +34,20 @@ interface IManager {
/**
* Registers a resource backend
*
- * @param IBackend $backend
+ * @param string $backendClass
* @return void
* @since 14.0.0
*/
- public function registerBackend(IBackend $backend);
+ public function registerBackend(string $backendClass);
/**
* Unregisters a resource backend
*
- * @param IBackend $backend
+ * @param string $backendClass
* @return void
* @since 14.0.0
*/
- public function unregisterBackend(IBackend $backend);
+ public function unregisterBackend(string $backendClass);
/**
* @return IBackend[]
@@ -57,10 +57,10 @@ interface IManager {
/**
* @param string $backendId
- * @return IBackend
+ * @return IBackend|null
* @since 14.0.0
*/
- public function getBackend($backendId):IBackend;
+ public function getBackend($backendId);
/**
* removes all registered backend instances
diff --git a/lib/public/Calendar/Room/IManager.php b/lib/public/Calendar/Room/IManager.php
index 39e85c43e45..9aa61aa3f66 100644
--- a/lib/public/Calendar/Room/IManager.php
+++ b/lib/public/Calendar/Room/IManager.php
@@ -34,20 +34,20 @@ interface IManager {
/**
* Registers a room backend
*
- * @param IBackend $backend
+ * @param string $backendClass
* @return void
* @since 14.0.0
*/
- public function registerBackend(IBackend $backend);
+ public function registerBackend(string $backendClass);
/**
* Unregisters a room backend
*
- * @param IBackend $backend
+ * @param string $backendClass
* @return void
* @since 14.0.0
*/
- public function unregisterBackend(IBackend $backend);
+ public function unregisterBackend(string $backendClass);
/**
* @return IBackend[]
@@ -57,10 +57,10 @@ interface IManager {
/**
* @param string $backendId
- * @return IBackend
+ * @return IBackend|null
* @since 14.0.0
*/
- public function getBackend($backendId):IBackend;
+ public function getBackend($backendId);
/**
* removes all registered backend instances