@@ -53,6 +53,10 @@ discard block |
||
| 53 | 53 | /** @var string */ |
| 54 | 54 | private $documentLibraryTitle; |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $sharePointUrl |
|
| 58 | + * @param string $documentLibraryTitle |
|
| 59 | + */ |
|
| 56 | 60 | public function __construct(ContextsFactory $contextsFactory, $sharePointUrl, array $credentials, $documentLibraryTitle) { |
| 57 | 61 | $this->contextsFactory = $contextsFactory; |
| 58 | 62 | $this->sharePointUrl = $sharePointUrl; |
@@ -114,6 +118,7 @@ discard block |
||
| 114 | 118 | * |
| 115 | 119 | * @param string $relativeServerPath |
| 116 | 120 | * @throws \Exception |
| 121 | + * @return string |
|
| 117 | 122 | */ |
| 118 | 123 | public function createFolder($relativeServerPath) { |
| 119 | 124 | $this->ensureConnection(); |
@@ -134,6 +139,9 @@ discard block |
||
| 134 | 139 | } |
| 135 | 140 | } |
| 136 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $relativeServerPath |
|
| 144 | + */ |
|
| 137 | 145 | public function deleteFolder($relativeServerPath, Folder $folder = null) { |
| 138 | 146 | $this->ensureConnection(); |
| 139 | 147 | |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | /** |
| 349 | - * @param $serverUrl |
|
| 349 | + * @param string $serverUrl |
|
| 350 | 350 | * @return ClientObjectCollection[] |
| 351 | 351 | */ |
| 352 | 352 | private function getFolderContents($serverUrl) { |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | } |
| 379 | 379 | |
| 380 | 380 | /** |
| 381 | - * @param $serverUrl |
|
| 381 | + * @param string $serverUrl |
|
| 382 | 382 | * @return File|Folder |
| 383 | 383 | * @throws NotFoundException |
| 384 | 384 | */ |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | /** |
| 406 | 406 | * creates the relative server "url" out of the provided path |
| 407 | 407 | * |
| 408 | - * @param $path |
|
| 408 | + * @param string $path |
|
| 409 | 409 | * @return string |
| 410 | 410 | */ |
| 411 | 411 | private function formatPath($path) { |