diff options
author | Joas Schilling <coding@schilljs.com> | 2018-10-24 14:25:35 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:16 +0100 |
commit | 702dcfb72848b36921a310188aa019d810668ebc (patch) | |
tree | 449f8965032eda43db1a029f4f13bebedd83029a /lib/public/Collaboration | |
parent | 5dfc56e925309d637be6f5a69cc16d0baaf20d03 (diff) | |
download | nextcloud-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.php | 6 | ||||
-rw-r--r-- | lib/public/Collaboration/Resources/IManager.php | 4 |
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 |