diff options
author | Georg Ehrke <developer@georgehrke.com> | 2018-06-19 13:22:30 +0300 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2018-06-25 05:59:04 +0300 |
commit | cba783f5df8b0129d6b95056ef299e504fed4094 (patch) | |
tree | 0d9744ee201a041822277607181e8d81e3d04d63 /lib/public | |
parent | da533d747088633535e5d5281da433753d3cfc81 (diff) |
Calendar resource booking: unit tests / adding missing annotations
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Calendar/BackendTemporarilyUnavailableException.php | 6 | ||||
-rw-r--r-- | lib/public/Calendar/Resource/IBackend.php | 3 | ||||
-rw-r--r-- | lib/public/Calendar/Resource/IManager.php | 7 | ||||
-rw-r--r-- | lib/public/Calendar/Room/IBackend.php | 3 | ||||
-rw-r--r-- | lib/public/Calendar/Room/IManager.php | 7 |
5 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/Calendar/BackendTemporarilyUnavailableException.php b/lib/public/Calendar/BackendTemporarilyUnavailableException.php index 61c1934c342..632a802359c 100644 --- a/lib/public/Calendar/BackendTemporarilyUnavailableException.php +++ b/lib/public/Calendar/BackendTemporarilyUnavailableException.php @@ -23,4 +23,10 @@ namespace OCP\Calendar; +/** + * Class BackendTemporarilyUnavailableException + * + * @package OCP\Calendar + * @since 14.0.0 + */ class BackendTemporarilyUnavailableException extends \Exception {} diff --git a/lib/public/Calendar/Resource/IBackend.php b/lib/public/Calendar/Resource/IBackend.php index 564c9e008b5..24635219fe0 100644 --- a/lib/public/Calendar/Resource/IBackend.php +++ b/lib/public/Calendar/Resource/IBackend.php @@ -37,6 +37,7 @@ interface IBackend { * * @throws BackendTemporarilyUnavailableException * @return IResource[] + * @since 14.0.0 */ public function getAllResources():array; @@ -45,6 +46,7 @@ interface IBackend { * * @throws BackendTemporarilyUnavailableException * @return string[] + * @since 14.0.0 */ public function listAllResources():array; @@ -54,6 +56,7 @@ interface IBackend { * @param string $id * @throws BackendTemporarilyUnavailableException * @return IResource|null + * @since 14.0.0 */ public function getResource($id); diff --git a/lib/public/Calendar/Resource/IManager.php b/lib/public/Calendar/Resource/IManager.php index d2ec7350dad..8542e13eba7 100644 --- a/lib/public/Calendar/Resource/IManager.php +++ b/lib/public/Calendar/Resource/IManager.php @@ -23,6 +23,12 @@ namespace OCP\Calendar\Resource; +/** + * Interface IManager + * + * @package OCP\Calendar\Resource + * @since 14.0.0 + */ interface IManager { /** @@ -52,6 +58,7 @@ interface IManager { /** * @param string $backendId * @return IBackend + * @since 14.0.0 */ public function getBackend($backendId):IBackend; diff --git a/lib/public/Calendar/Room/IBackend.php b/lib/public/Calendar/Room/IBackend.php index 0d4c3ef678f..f675012ab39 100644 --- a/lib/public/Calendar/Room/IBackend.php +++ b/lib/public/Calendar/Room/IBackend.php @@ -37,6 +37,7 @@ interface IBackend { * * @throws BackendTemporarilyUnavailableException * @return IRoom[] + * @since 14.0.0 */ public function getAllRooms():array; @@ -45,6 +46,7 @@ interface IBackend { * * @throws BackendTemporarilyUnavailableException * @return string[] + * @since 14.0.0 */ public function listAllRooms():array; @@ -54,6 +56,7 @@ interface IBackend { * @param string $id * @throws BackendTemporarilyUnavailableException * @return IRoom|null + * @since 14.0.0 */ public function getRoom($id); diff --git a/lib/public/Calendar/Room/IManager.php b/lib/public/Calendar/Room/IManager.php index 6f55f0f76c0..39e85c43e45 100644 --- a/lib/public/Calendar/Room/IManager.php +++ b/lib/public/Calendar/Room/IManager.php @@ -23,6 +23,12 @@ namespace OCP\Calendar\Room; +/** + * Interface IManager + * + * @package OCP\Calendar\Room + * @since 14.0.0 + */ interface IManager { /** @@ -52,6 +58,7 @@ interface IManager { /** * @param string $backendId * @return IBackend + * @since 14.0.0 */ public function getBackend($backendId):IBackend; |