@@ -137,7 +137,7 @@ |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | - * @param $name |
|
| 140 | + * @param string $name |
|
| 141 | 141 | * @param $value |
| 142 | 142 | * @return null |
| 143 | 143 | */ |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | /** |
| 429 | 429 | * @param Message\BaseResponseMessageType $response |
| 430 | - * @param $code |
|
| 430 | + * @param integer $code |
|
| 431 | 431 | * @throws ExchangeException |
| 432 | 432 | * @throws NoResponseReturnedException |
| 433 | 433 | * @throws ServiceUnavailableException |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | } |
| 478 | 478 | |
| 479 | 479 | /** |
| 480 | - * @param array $middlewareStack |
|
| 480 | + * @param callable[] $middlewareStack |
|
| 481 | 481 | * @param MiddlewareRequest $request |
| 482 | 482 | * @return MiddlewareResponse |
| 483 | 483 | */ |
@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | return $updateArray; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $uriType |
|
| 29 | + */ |
|
| 27 | 30 | protected static function buildUpdateDeleteItemFields($uriType, $changes) |
| 28 | 31 | { |
| 29 | 32 | $deleteItemFields = []; |
@@ -40,6 +43,10 @@ discard block |
||
| 40 | 43 | return $deleteItemFields; |
| 41 | 44 | } |
| 42 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $itemType |
|
| 48 | + * @param string $uriType |
|
| 49 | + */ |
|
| 43 | 50 | protected static function buildUpdateSetItemFields($itemType, $uriType, $changes) |
| 44 | 51 | { |
| 45 | 52 | $setItemFields = []; |
@@ -91,6 +91,9 @@ |
||
| 91 | 91 | return self::$unIndexedFieldURIs[$fieldName][$preference]; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $fieldName |
|
| 96 | + */ |
|
| 94 | 97 | public static function getIndexedFieldUriByName($fieldName, $preference = 'item', $entryKey = false) |
| 95 | 98 | { |
| 96 | 99 | self::setupFieldUris(); |
@@ -358,8 +358,8 @@ discard block |
||
| 358 | 358 | } |
| 359 | 359 | |
| 360 | 360 | /** |
| 361 | - * @param $majorVersion |
|
| 362 | - * @param $minorVersion |
|
| 361 | + * @param string $majorVersion |
|
| 362 | + * @param string $minorVersion |
|
| 363 | 363 | * @return bool|mixed |
| 364 | 364 | */ |
| 365 | 365 | protected function parseVersionBefore2013($majorVersion, $minorVersion) |
@@ -387,6 +387,11 @@ discard block |
||
| 387 | 387 | return constant(ExchangeWebServices::class . "::$constant"); |
| 388 | 388 | } |
| 389 | 389 | |
| 390 | + /** |
|
| 391 | + * @param string $majorVersion |
|
| 392 | + * @param string $minorVersion |
|
| 393 | + * @param string $buildVersion |
|
| 394 | + */ |
|
| 390 | 395 | protected function parseVersionAfter2013($majorVersion, $minorVersion, $buildVersion) |
| 391 | 396 | { |
| 392 | 397 | if ($minorVersion >= 1) { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use garethp\ews\API\ClassMap; |
| 6 | 6 | use garethp\ews\API\Type\BaseFolderIdType; |
| 7 | -use garethp\ews\API\Type\FolderIdType; |
|
| 8 | 7 | |
| 9 | 8 | class NotificationAPI extends API |
| 10 | 9 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param Type\BaseFolderIdType $folderId |
| 75 | 75 | * @param array $options |
| 76 | - * @return Type\MessageType[] |
|
| 76 | + * @return Type |
|
| 77 | 77 | */ |
| 78 | 78 | public function getMailItems($folderId = null, $options = array()) |
| 79 | 79 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * @param Type\BaseFolderIdType $folderId |
| 104 | 104 | * @param array $options |
| 105 | - * @return Type\MessageType[] |
|
| 105 | + * @return Type |
|
| 106 | 106 | */ |
| 107 | 107 | public function getUnreadMailItems($folderId = null, $options = array()) |
| 108 | 108 | { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * @param array $options |
| 197 | - * @return API\Message\EmptyFolderResponseType |
|
| 197 | + * @return Type |
|
| 198 | 198 | */ |
| 199 | 199 | public function emptyTrash(array $options = []) |
| 200 | 200 | { |
@@ -94,6 +94,10 @@ discard block |
||
| 94 | 94 | return $this->client; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @param string $username |
|
| 99 | + * @param string $password |
|
| 100 | + */ |
|
| 97 | 101 | public static function withUsernameAndPassword($server, $username, $password, $options = []) |
| 98 | 102 | { |
| 99 | 103 | return new static(ExchangeWebServices::fromUsernameAndPassword( |
@@ -189,6 +193,9 @@ discard block |
||
| 189 | 193 | return $this->createFolders($names, $parentFolder, $options, 'IPF.Contact'); |
| 190 | 194 | } |
| 191 | 195 | |
| 196 | + /** |
|
| 197 | + * @param string $folderClass |
|
| 198 | + */ |
|
| 192 | 199 | public function createFolders($names, BaseFolderIdType $parentFolder, $options = array(), $folderClass = null) |
| 193 | 200 | { |
| 194 | 201 | $names = Utilities\ensureIsArray($names); |
@@ -278,7 +285,7 @@ discard block |
||
| 278 | 285 | /** |
| 279 | 286 | * @param $identifier |
| 280 | 287 | * @param array $options |
| 281 | - * @return Type\BaseFolderType |
|
| 288 | + * @return Type |
|
| 282 | 289 | */ |
| 283 | 290 | public function getFolder($identifier, $options = []) |
| 284 | 291 | { |
@@ -303,7 +310,7 @@ discard block |
||
| 303 | 310 | * |
| 304 | 311 | * @param string $distinguishedId |
| 305 | 312 | * @param array $options |
| 306 | - * @return Type\BaseFolderType |
|
| 313 | + * @return Type |
|
| 307 | 314 | */ |
| 308 | 315 | public function getFolderByDistinguishedId($distinguishedId, $options = []) |
| 309 | 316 | { |
@@ -318,7 +325,7 @@ discard block |
||
| 318 | 325 | /** |
| 319 | 326 | * @param string|BaseFolderIdType $folderId |
| 320 | 327 | * @param array $options |
| 321 | - * @return Type\BaseFolderType |
|
| 328 | + * @return Type |
|
| 322 | 329 | * @throws API\Exception |
| 323 | 330 | */ |
| 324 | 331 | public function getFolderByFolderId($folderId, $options = []) |
@@ -335,7 +342,7 @@ discard block |
||
| 335 | 342 | /** |
| 336 | 343 | * @param string|BaseFolderIdType $parentFolderId |
| 337 | 344 | * @param array $options |
| 338 | - * @return Type\BaseFolderType[] |
|
| 345 | + * @return Type |
|
| 339 | 346 | */ |
| 340 | 347 | public function getChildrenFolders($parentFolderId = 'root', array $options = array()) |
| 341 | 348 | { |
@@ -405,7 +412,7 @@ discard block |
||
| 405 | 412 | * @param BaseFolderIdType $folderId |
| 406 | 413 | * @param null $syncState |
| 407 | 414 | * @param array $options |
| 408 | - * @return SyncFolderItemsResponseMessageType |
|
| 415 | + * @return Type |
|
| 409 | 416 | */ |
| 410 | 417 | public function listItemChanges($folderId, $syncState = null, array $options = array()) |
| 411 | 418 | { |
@@ -500,7 +507,7 @@ discard block |
||
| 500 | 507 | * @param string $deleteType |
| 501 | 508 | * @param bool $deleteSubFolders |
| 502 | 509 | * @param array $options |
| 503 | - * @return EmptyFolderResponseType |
|
| 510 | + * @return Type |
|
| 504 | 511 | */ |
| 505 | 512 | public function emptyFolder( |
| 506 | 513 | BaseFolderIdType $folderId, |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Get a list of calendar items between two dates/times |
| 88 | 88 | * |
| 89 | - * @param string|DateTime $start |
|
| 90 | - * @param string|DateTime $end |
|
| 89 | + * @param string $start |
|
| 90 | + * @param string $end |
|
| 91 | 91 | * @param array $options |
| 92 | - * @return CalendarItemType[]|Type\FindItemParentType |
|
| 92 | + * @return Type |
|
| 93 | 93 | */ |
| 94 | 94 | public function getCalendarItems($start = '12:00 AM', $end = '11:59 PM', $options = array()) |
| 95 | 95 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * @param $id |
| 123 | 123 | * @param $changeKey |
| 124 | 124 | * @param array $options |
| 125 | - * @return Type\CalendarItemType |
|
| 125 | + * @return Type |
|
| 126 | 126 | */ |
| 127 | 127 | public function getCalendarItem($id, $changeKey, $options = []) |
| 128 | 128 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * |
| 190 | 190 | * @param null $syncState |
| 191 | 191 | * @param array $options |
| 192 | - * @return API\Message\SyncFolderItemsResponseMessageType |
|
| 192 | + * @return Type |
|
| 193 | 193 | */ |
| 194 | 194 | public function listChanges($syncState = null, $options = array()) |
| 195 | 195 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @param array $users |
| 252 | 252 | * @param array $options |
| 253 | 253 | * |
| 254 | - * @return API\Message\GetUserAvailabilityResponseType |
|
| 254 | + * @return Type |
|
| 255 | 255 | */ |
| 256 | 256 | public function getAvailabilityFor($startTime, $endTime, array $users, array $options = array()) |
| 257 | 257 | { |