summaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-10-24 14:25:35 +0200
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:16 +0100
commit702dcfb72848b36921a310188aa019d810668ebc (patch)
tree449f8965032eda43db1a029f4f13bebedd83029a /lib/public/Collaboration
parent5dfc56e925309d637be6f5a69cc16d0baaf20d03 (diff)
downloadnextcloud-server-702dcfb72848b36921a310188aa019d810668ebc.tar.gz
nextcloud-server-702dcfb72848b36921a310188aa019d810668ebc.zip
Make names mandatory
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r--lib/public/Collaboration/Resources/ICollection.php6
-rw-r--r--lib/public/Collaboration/Resources/IManager.php4
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/Collaboration/Resources/ICollection.php b/lib/public/Collaboration/Resources/ICollection.php
index 1f503d8083a..d5864466491 100644
--- a/lib/public/Collaboration/Resources/ICollection.php
+++ b/lib/public/Collaboration/Resources/ICollection.php
@@ -36,6 +36,12 @@ interface ICollection {
public function getId(): int;
/**
+ * @return string
+ * @since 15.0.0
+ */
+ public function getName(): string;
+
+ /**
* @return IResource[]
* @since 15.0.0
*/
diff --git a/lib/public/Collaboration/Resources/IManager.php b/lib/public/Collaboration/Resources/IManager.php
index abccfd2eed1..dd1c970af79 100644
--- a/lib/public/Collaboration/Resources/IManager.php
+++ b/lib/public/Collaboration/Resources/IManager.php
@@ -30,15 +30,17 @@ interface IManager extends IProvider {
/**
* @param int $id
* @return ICollection
+ * @throws CollectionException when the collection could not be found
* @since 15.0.0
*/
public function getCollection(int $id): ICollection;
/**
+ * @param string $name
* @return ICollection
* @since 15.0.0
*/
- public function newCollection(): ICollection;
+ public function newCollection(string $name): ICollection;
/**
* @param string $type