summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-07 16:04:15 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:18 +0100
commitdee6f7f61f0f0d1827ed0555f199d7bce67e67b6 (patch)
tree7580fac261264860ffb4690b2445121706cc3c96 /lib/public
parent31340b8be944fbf86237c10bff87b5ca3a2ffa8a (diff)
downloadnextcloud-server-dee6f7f61f0f0d1827ed0555f199d7bce67e67b6.tar.gz
nextcloud-server-dee6f7f61f0f0d1827ed0555f199d7bce67e67b6.zip
Fix doc blocks
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Collaboration/Resources/CollectionException.php4
-rw-r--r--lib/public/Collaboration/Resources/ICollection.php14
-rw-r--r--lib/public/Collaboration/Resources/IManager.php10
-rw-r--r--lib/public/Collaboration/Resources/IProvider.php13
-rw-r--r--lib/public/Collaboration/Resources/IResource.php16
-rw-r--r--lib/public/Collaboration/Resources/ResourceException.php3
6 files changed, 34 insertions, 26 deletions
diff --git a/lib/public/Collaboration/Resources/CollectionException.php b/lib/public/Collaboration/Resources/CollectionException.php
index f5130d37d60..b68fe5bff8e 100644
--- a/lib/public/Collaboration/Resources/CollectionException.php
+++ b/lib/public/Collaboration/Resources/CollectionException.php
@@ -22,7 +22,9 @@ declare(strict_types=1);
namespace OCP\Collaboration\Resources;
-
+/**
+ * @since 16.0.0
+ */
class CollectionException extends \RuntimeException {
}
diff --git a/lib/public/Collaboration/Resources/ICollection.php b/lib/public/Collaboration/Resources/ICollection.php
index d5864466491..cd59a7d3e5a 100644
--- a/lib/public/Collaboration/Resources/ICollection.php
+++ b/lib/public/Collaboration/Resources/ICollection.php
@@ -25,25 +25,25 @@ namespace OCP\Collaboration\Resources;
use OCP\IUser;
/**
- * @since 15.0.0
+ * @since 16.0.0
*/
interface ICollection {
/**
* @return int
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getId(): int;
/**
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getName(): string;
/**
* @return IResource[]
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getResources(): array;
@@ -52,7 +52,7 @@ interface ICollection {
*
* @param IResource $resource
* @throws ResourceException when the resource is already part of the collection
- * @since 15.0.0
+ * @since 16.0.0
*/
public function addResource(IResource $resource);
@@ -60,7 +60,7 @@ interface ICollection {
* Removes a resource from a collection
*
* @param IResource $resource
- * @since 15.0.0
+ * @since 16.0.0
*/
public function removeResource(IResource $resource);
@@ -69,7 +69,7 @@ interface ICollection {
*
* @param IUser $user
* @return bool
- * @since 15.0.0
+ * @since 16.0.0
*/
public function canAccess(IUser $user = null): bool;
}
diff --git a/lib/public/Collaboration/Resources/IManager.php b/lib/public/Collaboration/Resources/IManager.php
index cac13812fee..77f958e513a 100644
--- a/lib/public/Collaboration/Resources/IManager.php
+++ b/lib/public/Collaboration/Resources/IManager.php
@@ -23,7 +23,7 @@ declare(strict_types=1);
namespace OCP\Collaboration\Resources;
/**
- * @since 15.0.0
+ * @since 16.0.0
*/
interface IManager extends IProvider {
@@ -31,14 +31,14 @@ interface IManager extends IProvider {
* @param int $id
* @return ICollection
* @throws CollectionException when the collection could not be found
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getCollection(int $id): ICollection;
/**
* @param string $name
* @return ICollection
- * @since 15.0.0
+ * @since 16.0.0
*/
public function newCollection(string $name): ICollection;
@@ -46,7 +46,7 @@ interface IManager extends IProvider {
/**
* @param string $name
* @return ICollection
- * @since 15.0.0
+ * @since 16.0.0
*/
public function renameCollection(int $id, string $name): ICollection;
@@ -54,7 +54,7 @@ interface IManager extends IProvider {
* @param string $type
* @param string $id
* @return IResource
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getResource(string $type, string $id): IResource;
diff --git a/lib/public/Collaboration/Resources/IProvider.php b/lib/public/Collaboration/Resources/IProvider.php
index 9ffc5f4324b..52ad2305cfe 100644
--- a/lib/public/Collaboration/Resources/IProvider.php
+++ b/lib/public/Collaboration/Resources/IProvider.php
@@ -24,6 +24,9 @@ namespace OCP\Collaboration\Resources;
use OCP\IUser;
+/**
+ * @since 16.0.0
+ */
interface IProvider {
/**
@@ -31,7 +34,7 @@ interface IProvider {
*
* @param IResource $resource
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getType(): string;
@@ -40,7 +43,7 @@ interface IProvider {
*
* @param IResource $resource
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getName(IResource $resource): string;
@@ -49,7 +52,7 @@ interface IProvider {
*
* @param IResource $resource
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getIconClass(IResource $resource): string;
@@ -58,7 +61,7 @@ interface IProvider {
*
* @param IResource $resource
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getLink(IResource $resource): string;
@@ -68,7 +71,7 @@ interface IProvider {
* @param IResource $resource
* @param IUser $user
* @return bool
- * @since 15.0.0
+ * @since 16.0.0
*/
public function canAccess(IResource $resource, IUser $user = null): bool;
diff --git a/lib/public/Collaboration/Resources/IResource.php b/lib/public/Collaboration/Resources/IResource.php
index d16b4c131d8..34969dabd0d 100644
--- a/lib/public/Collaboration/Resources/IResource.php
+++ b/lib/public/Collaboration/Resources/IResource.php
@@ -25,37 +25,37 @@ namespace OCP\Collaboration\Resources;
use OCP\IUser;
/**
- * @since 15.0.0
+ * @since 16.0.0
*/
interface IResource {
/**
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getType(): string;
/**
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getId(): string;
/**
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getName(): string;
/**
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getIconClass(): string;
/**
* @return string
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getLink(): string;
@@ -64,13 +64,13 @@ interface IResource {
*
* @param IUser $user
* @return bool
- * @since 15.0.0
+ * @since 16.0.0
*/
public function canAccess(IUser $user = null): bool;
/**
* @return ICollection[]
- * @since 15.0.0
+ * @since 16.0.0
*/
public function getCollections(): array;
}
diff --git a/lib/public/Collaboration/Resources/ResourceException.php b/lib/public/Collaboration/Resources/ResourceException.php
index d03264bcef9..235622fcff9 100644
--- a/lib/public/Collaboration/Resources/ResourceException.php
+++ b/lib/public/Collaboration/Resources/ResourceException.php
@@ -23,6 +23,9 @@ declare(strict_types=1);
namespace OCP\Collaboration\Resources;
+/**
+ * @since 16.0.0
+ */
class ResourceException extends \RuntimeException {
}