@@ -93,6 +93,10 @@ discard block |
||
| 93 | 93 | return $this->client; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $username |
|
| 98 | + * @param string $password |
|
| 99 | + */ |
|
| 96 | 100 | public static function withUsernameAndPassword($server, $username, $password, $options = []) |
| 97 | 101 | { |
| 98 | 102 | return new static(ExchangeWebServices::fromUsernameAndPassword( |
@@ -307,7 +311,7 @@ discard block |
||
| 307 | 311 | |
| 308 | 312 | /** |
| 309 | 313 | * @param $identifier |
| 310 | - * @return Type\BaseFolderType |
|
| 314 | + * @return Type |
|
| 311 | 315 | */ |
| 312 | 316 | public function getFolder($identifier) |
| 313 | 317 | { |
@@ -328,7 +332,7 @@ discard block |
||
| 328 | 332 | * Get a folder by it's distinguishedId |
| 329 | 333 | * |
| 330 | 334 | * @param string $distinguishedId |
| 331 | - * @return Type\BaseFolderType |
|
| 335 | + * @return Type |
|
| 332 | 336 | */ |
| 333 | 337 | public function getFolderByDistinguishedId($distinguishedId) |
| 334 | 338 | { |
@@ -342,7 +346,7 @@ discard block |
||
| 342 | 346 | |
| 343 | 347 | /** |
| 344 | 348 | * @param $folderId |
| 345 | - * @return Type\BaseFolderType |
|
| 349 | + * @return Type |
|
| 346 | 350 | */ |
| 347 | 351 | public function getFolderByFolderId($folderId) |
| 348 | 352 | { |
@@ -354,7 +358,7 @@ discard block |
||
| 354 | 358 | /** |
| 355 | 359 | * @param string|Type\FolderIdType $parentFolderId |
| 356 | 360 | * @param array $options |
| 357 | - * @return Type\BaseFolderType[] |
|
| 361 | + * @return Type |
|
| 358 | 362 | */ |
| 359 | 363 | public function getChildrenFolders($parentFolderId = 'root', $options = array()) |
| 360 | 364 | { |
@@ -426,7 +430,7 @@ discard block |
||
| 426 | 430 | * @param Type\FolderIdType $folderId |
| 427 | 431 | * @param null $syncState |
| 428 | 432 | * @param array $options |
| 429 | - * @return SyncFolderItemsResponseMessageType |
|
| 433 | + * @return Type |
|
| 430 | 434 | */ |
| 431 | 435 | public function listItemChanges($folderId, $syncState = null, $options = array()) |
| 432 | 436 | { |
@@ -525,7 +529,7 @@ discard block |
||
| 525 | 529 | * @param string $deleteType |
| 526 | 530 | * @param bool $deleteSubFolders |
| 527 | 531 | * @param array $options |
| 528 | - * @return EmptyFolderResponseType |
|
| 532 | + * @return Type |
|
| 529 | 533 | */ |
| 530 | 534 | public function emptyFolder( |
| 531 | 535 | Type\FolderIdType $folderId, |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @param Type\FolderIdType |
| 76 | 76 | * @param array $options |
| 77 | - * @return Type\MessageType[] |
|
| 77 | + * @return Type |
|
| 78 | 78 | */ |
| 79 | 79 | public function getMailItems($folderId = null, $options = array()) |
| 80 | 80 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * @param Type\FolderIdType $folderId |
| 107 | 107 | * @param array $options |
| 108 | - * @return Type\MessageType[] |
|
| 108 | + * @return Type |
|
| 109 | 109 | */ |
| 110 | 110 | public function getUnreadMailItems($folderId = null, $options = array()) |
| 111 | 111 | { |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | 200 | * @param array $options |
| 201 | - * @return API\Message\EmptyFolderResponseType |
|
| 201 | + * @return Type |
|
| 202 | 202 | */ |
| 203 | 203 | public function emptyTrash(array $options = []) |
| 204 | 204 | { |