Add proper throws PHP docs

This commit is contained in:
Lukas Reschke 2016-06-30 13:19:50 +02:00
parent 1e7f0f7341
commit c771368c4e
1 changed files with 13 additions and 2 deletions

View File

@ -186,9 +186,13 @@ class ObjectTree extends \Sabre\DAV\Tree {
* *
* @param string $sourcePath The path to the file which should be moved * @param string $sourcePath The path to the file which should be moved
* @param string $destinationPath The full destination path, so not just the destination parent node * @param string $destinationPath The full destination path, so not just the destination parent node
* @throws \Sabre\DAV\Exception\BadRequest * @throws FileLocked
* @throws \Sabre\DAV\Exception\ServiceUnavailable * @throws Forbidden
* @throws InvalidPath
* @throws \Sabre\DAV\Exception\Forbidden * @throws \Sabre\DAV\Exception\Forbidden
* @throws \Sabre\DAV\Exception\Locked
* @throws \Sabre\DAV\Exception\NotFound
* @throws \Sabre\DAV\Exception\ServiceUnavailable
* @return int * @return int
*/ */
public function move($sourcePath, $destinationPath) { public function move($sourcePath, $destinationPath) {
@ -274,6 +278,13 @@ class ObjectTree extends \Sabre\DAV\Tree {
* *
* @param string $source * @param string $source
* @param string $destination * @param string $destination
* @throws FileLocked
* @throws Forbidden
* @throws InvalidPath
* @throws \Exception
* @throws \Sabre\DAV\Exception\Forbidden
* @throws \Sabre\DAV\Exception\Locked
* @throws \Sabre\DAV\Exception\NotFound
* @throws \Sabre\DAV\Exception\ServiceUnavailable * @throws \Sabre\DAV\Exception\ServiceUnavailable
* @return void * @return void
*/ */