@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * @deprecated This will be removed in 0.9. See FieldURIManager |
81 | 81 | * |
82 | - * @param $fieldName |
|
82 | + * @param string $fieldName |
|
83 | 83 | * @param string $preference |
84 | 84 | * @param bool $entryKey |
85 | 85 | * @throws ExchangeException |
@@ -164,6 +164,10 @@ discard block |
||
164 | 164 | )); |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param string $username |
|
169 | + * @param string $password |
|
170 | + */ |
|
167 | 171 | public static function withUsernameAndPassword($server, $username, $password, $options = []) |
168 | 172 | { |
169 | 173 | return new static(ExchangeWebServices::fromUsernameAndPassword( |
@@ -247,6 +251,9 @@ discard block |
||
247 | 251 | return $response; |
248 | 252 | } |
249 | 253 | |
254 | + /** |
|
255 | + * @param string $uriType |
|
256 | + */ |
|
250 | 257 | protected function getFieldURI($uriType, $key = null, $value = null) |
251 | 258 | { |
252 | 259 | if (strpos($key, ':') !== false) { |
@@ -431,7 +438,7 @@ discard block |
||
431 | 438 | |
432 | 439 | /** |
433 | 440 | * @param $identifier |
434 | - * @return Type\BaseFolderType |
|
441 | + * @return Type |
|
435 | 442 | */ |
436 | 443 | public function getFolder($identifier) |
437 | 444 | { |
@@ -451,7 +458,7 @@ discard block |
||
451 | 458 | * Get a folder by it's distinguishedId |
452 | 459 | * |
453 | 460 | * @param string $distinguishedId |
454 | - * @return Type\BaseFolderType |
|
461 | + * @return Type |
|
455 | 462 | */ |
456 | 463 | public function getFolderByDistinguishedId($distinguishedId) |
457 | 464 | { |
@@ -465,7 +472,7 @@ discard block |
||
465 | 472 | |
466 | 473 | /** |
467 | 474 | * @param $folderId |
468 | - * @return Type\BaseFolderType |
|
475 | + * @return Type |
|
469 | 476 | */ |
470 | 477 | public function getFolderByFolderId($folderId) |
471 | 478 | { |
@@ -550,7 +557,7 @@ discard block |
||
550 | 557 | * @param Type\FolderIdType $folderId |
551 | 558 | * @param null $syncState |
552 | 559 | * @param array $options |
553 | - * @return SyncFolderItemsResponseMessageType |
|
560 | + * @return Type |
|
554 | 561 | */ |
555 | 562 | public function listItemChanges($folderId, $syncState = null, $options = array()) |
556 | 563 | { |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace garethp\ews; |
4 | 4 | |
5 | -use garethp\ews\API\Enumeration\DictionaryURIType; |
|
6 | -use garethp\ews\API\Enumeration\UnindexedFieldURIType; |
|
7 | 5 | use garethp\ews\API\Exception\ExchangeException; |
8 | 6 | use garethp\ews\API\ExchangeWebServices; |
9 | 7 | use garethp\ews\API\Message\GetServerTimeZonesType; |