@@ -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 | { |