diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-27 15:15:09 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-27 15:15:09 +0100 |
commit | c5a9bad919b78f2fa00458df0df41a749afee7aa (patch) | |
tree | 5f65607b156cdbd5f1e03e394af382b5022d4216 /lib/private | |
parent | 8abb80c64277524fadcbea875e2d559c339ef0b1 (diff) | |
parent | 3a6a0501c438d0bf95fd84c1c87edd24f0caa710 (diff) | |
download | nextcloud-server-c5a9bad919b78f2fa00458df0df41a749afee7aa.tar.gz nextcloud-server-c5a9bad919b78f2fa00458df0df41a749afee7aa.zip |
Merge pull request #14567 from owncloud/node-check-fileinfo-interface
Add "throws" lines to calling methods and interface aswell
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/files/node/node.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/private/files/node/node.php b/lib/private/files/node/node.php index 9446bff603e..e5b219420cd 100644 --- a/lib/private/files/node/node.php +++ b/lib/private/files/node/node.php @@ -152,6 +152,8 @@ class Node implements \OCP\Files\Node { /** * @return int + * @throws InvalidPathException + * @throws NotFoundException */ public function getId() { return $this->getFileInfo()->getId(); @@ -166,6 +168,8 @@ class Node implements \OCP\Files\Node { /** * @return int + * @throws InvalidPathException + * @throws NotFoundException */ public function getMTime() { return $this->getFileInfo()->getMTime(); @@ -173,6 +177,8 @@ class Node implements \OCP\Files\Node { /** * @return int + * @throws InvalidPathException + * @throws NotFoundException */ public function getSize() { return $this->getFileInfo()->getSize(); @@ -180,6 +186,8 @@ class Node implements \OCP\Files\Node { /** * @return string + * @throws InvalidPathException + * @throws NotFoundException */ public function getEtag() { return $this->getFileInfo()->getEtag(); @@ -187,6 +195,8 @@ class Node implements \OCP\Files\Node { /** * @return int + * @throws InvalidPathException + * @throws NotFoundException */ public function getPermissions() { return $this->getFileInfo()->getPermissions(); @@ -194,6 +204,8 @@ class Node implements \OCP\Files\Node { /** * @return bool + * @throws InvalidPathException + * @throws NotFoundException */ public function isReadable() { return $this->getFileInfo()->isReadable(); @@ -201,6 +213,8 @@ class Node implements \OCP\Files\Node { /** * @return bool + * @throws InvalidPathException + * @throws NotFoundException */ public function isUpdateable() { return $this->getFileInfo()->isUpdateable(); @@ -208,6 +222,8 @@ class Node implements \OCP\Files\Node { /** * @return bool + * @throws InvalidPathException + * @throws NotFoundException */ public function isDeletable() { return $this->getFileInfo()->isDeletable(); @@ -215,11 +231,18 @@ class Node implements \OCP\Files\Node { /** * @return bool + * @throws InvalidPathException + * @throws NotFoundException */ public function isShareable() { return $this->getFileInfo()->isShareable(); } + /** + * @return bool + * @throws InvalidPathException + * @throws NotFoundException + */ public function isCreatable() { return $this->getFileInfo()->isCreatable(); } |