aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-09-10 20:01:15 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-09-10 20:01:36 +0200
commitb97f48f1afcb334d83e30af79d8190ec8c8d3ae0 (patch)
tree6a75aa88c2272a4be2053261bd570d5a80ae2d60 /lib/public
parent3f6692ee245e01634ed49c0c11e8a286fc01352a (diff)
downloadnextcloud-server-b97f48f1afcb334d83e30af79d8190ec8c8d3ae0.tar.gz
nextcloud-server-b97f48f1afcb334d83e30af79d8190ec8c8d3ae0.zip
Add exceptions to PHPDoc of interface
Improves static code analysis here and also keeps expectations proper. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Share/IManager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index 31f04803066..764e36b5d7e 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -40,6 +40,7 @@ interface IManager {
*
* @param IShare $share
* @return IShare The share object
+ * @throws \Exception
* @since 9.0.0
*/
public function createShare(IShare $share);
@@ -51,6 +52,7 @@ interface IManager {
*
* @param IShare $share
* @return IShare The share object
+ * @throws \InvalidArgumentException
* @since 9.0.0
*/
public function updateShare(IShare $share);
@@ -60,6 +62,7 @@ interface IManager {
*
* @param IShare $share
* @throws ShareNotFound
+ * @throws \InvalidArgumentException
* @since 9.0.0
*/
public function deleteShare(IShare $share);