@@ -95,6 +95,10 @@ discard block |
||
95 | 95 | return $this->client; |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param string $username |
|
100 | + * @param string $password |
|
101 | + */ |
|
98 | 102 | public static function withUsernameAndPassword($server, $username, $password, $options = []) |
99 | 103 | { |
100 | 104 | return new static(ExchangeWebServices::fromUsernameAndPassword( |
@@ -190,6 +194,9 @@ discard block |
||
190 | 194 | return $this->createFolders($names, $parentFolder, $options, 'IPF.Contact'); |
191 | 195 | } |
192 | 196 | |
197 | + /** |
|
198 | + * @param string $folderClass |
|
199 | + */ |
|
193 | 200 | public function createFolders($names, FolderIdType $parentFolder, $options = array(), $folderClass = null) |
194 | 201 | { |
195 | 202 | $names = Utilities\ensureIsArray($names); |
@@ -278,7 +285,7 @@ discard block |
||
278 | 285 | |
279 | 286 | /** |
280 | 287 | * @param $identifier |
281 | - * @return Type\BaseFolderType |
|
288 | + * @return Type |
|
282 | 289 | */ |
283 | 290 | public function getFolder($identifier) |
284 | 291 | { |
@@ -299,7 +306,7 @@ discard block |
||
299 | 306 | * Get a folder by it's distinguishedId |
300 | 307 | * |
301 | 308 | * @param string $distinguishedId |
302 | - * @return Type\BaseFolderType |
|
309 | + * @return Type |
|
303 | 310 | */ |
304 | 311 | public function getFolderByDistinguishedId($distinguishedId) |
305 | 312 | { |
@@ -313,7 +320,7 @@ discard block |
||
313 | 320 | |
314 | 321 | /** |
315 | 322 | * @param $folderId |
316 | - * @return Type\BaseFolderType |
|
323 | + * @return Type |
|
317 | 324 | */ |
318 | 325 | public function getFolderByFolderId($folderId) |
319 | 326 | { |
@@ -325,7 +332,7 @@ discard block |
||
325 | 332 | /** |
326 | 333 | * @param string|FolderIdType $parentFolderId |
327 | 334 | * @param array $options |
328 | - * @return Type\BaseFolderType[] |
|
335 | + * @return Type |
|
329 | 336 | */ |
330 | 337 | public function getChildrenFolders($parentFolderId = 'root', $options = array()) |
331 | 338 | { |
@@ -397,7 +404,7 @@ discard block |
||
397 | 404 | * @param FolderIdType $folderId |
398 | 405 | * @param null $syncState |
399 | 406 | * @param array $options |
400 | - * @return SyncFolderItemsResponseMessageType |
|
407 | + * @return Type |
|
401 | 408 | */ |
402 | 409 | public function listItemChanges($folderId, $syncState = null, $options = array()) |
403 | 410 | { |
@@ -492,7 +499,7 @@ discard block |
||
492 | 499 | * @param string $deleteType |
493 | 500 | * @param bool $deleteSubFolders |
494 | 501 | * @param array $options |
495 | - * @return EmptyFolderResponseType |
|
502 | + * @return Type |
|
496 | 503 | */ |
497 | 504 | public function emptyFolder( |
498 | 505 | FolderIdType $folderId, |