@@ -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) { |
@@ -54,6 +54,10 @@ discard block |
||
54 | 54 | /** @var string */ |
55 | 55 | private $documentLibraryTitle; |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $sharePointUrl |
|
59 | + * @param string $documentLibraryTitle |
|
60 | + */ |
|
57 | 61 | public function __construct(ContextsFactory $contextsFactory, $sharePointUrl, array $credentials, $documentLibraryTitle) { |
58 | 62 | $this->contextsFactory = $contextsFactory; |
59 | 63 | $this->sharePointUrl = $sharePointUrl; |
@@ -114,7 +118,7 @@ discard block |
||
114 | 118 | * adds a folder on the given server path |
115 | 119 | * |
116 | 120 | * @param string $relativeServerPath |
117 | - * @return Folder |
|
121 | + * @return string |
|
118 | 122 | * @throws \Exception |
119 | 123 | */ |
120 | 124 | public function createFolder($relativeServerPath) { |
@@ -166,13 +170,16 @@ discard block |
||
166 | 170 | /** |
167 | 171 | * fetches the file content (aka download) |
168 | 172 | * |
169 | - * @param $relativeServerPath |
|
173 | + * @param string $relativeServerPath |
|
170 | 174 | * @return string the file content |
171 | 175 | */ |
172 | 176 | public function getFile($relativeServerPath) { |
173 | 177 | return File::openBinary($this->context, $relativeServerPath); |
174 | 178 | } |
175 | 179 | |
180 | + /** |
|
181 | + * @param string $relativeServerPath |
|
182 | + */ |
|
176 | 183 | public function deleteFolder($relativeServerPath, Folder $folder = null) { |
177 | 184 | $this->ensureConnection(); |
178 | 185 |