@@ -3,7 +3,6 @@ |
||
| 3 | 3 | require_once "vendor/autoload.php"; |
| 4 | 4 | |
| 5 | 5 | use jamesiarmes\PEWS\API\Type; |
| 6 | -use jamesiarmes\PEWS\Mail\MailAPI; |
|
| 7 | 6 | |
| 8 | 7 | $api = MailApi::withUsernameAndPassword('server', 'username', 'password'); |
| 9 | 8 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | require_once "vendor/autoload.php"; |
| 4 | 4 | |
| 5 | -use jamesiarmes\PEWS\API\Type; |
|
| 6 | 5 | use jamesiarmes\PEWS\Mail\MailAPI; |
| 7 | 6 | |
| 8 | 7 | $api = MailAPI::withUsernameAndPassword('server', 'username', 'password'); |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | * |
| 205 | 205 | * @param $items |
| 206 | 206 | * @param array $options |
| 207 | - * @return API\CreateItemResponseType |
|
| 207 | + * @return Type |
|
| 208 | 208 | */ |
| 209 | 209 | public function createItems($items, $options = array()) |
| 210 | 210 | { |
@@ -239,6 +239,10 @@ discard block |
||
| 239 | 239 | return $this->getClient()->UpdateItem($request)->getItems(); |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | + /** |
|
| 243 | + * @param string $itemType |
|
| 244 | + * @param string $uriType |
|
| 245 | + */ |
|
| 242 | 246 | protected function buildUpdateItemChanges($itemType, $uriType, $changes) |
| 243 | 247 | { |
| 244 | 248 | $setItemFields = array(); |
@@ -330,7 +334,7 @@ discard block |
||
| 330 | 334 | |
| 331 | 335 | /** |
| 332 | 336 | * @param $identifier |
| 333 | - * @return Type\BaseFolderType |
|
| 337 | + * @return Type |
|
| 334 | 338 | */ |
| 335 | 339 | public function getFolder($identifier) |
| 336 | 340 | { |
@@ -350,7 +354,7 @@ discard block |
||
| 350 | 354 | * Get a folder by it's distinguishedId |
| 351 | 355 | * |
| 352 | 356 | * @param string $distinguishedId |
| 353 | - * @return Type\BaseFolderType |
|
| 357 | + * @return Type |
|
| 354 | 358 | */ |
| 355 | 359 | public function getFolderByDistinguishedId($distinguishedId) |
| 356 | 360 | { |
@@ -364,7 +368,7 @@ discard block |
||
| 364 | 368 | |
| 365 | 369 | /** |
| 366 | 370 | * @param $folderId |
| 367 | - * @return Type\BaseFolderType |
|
| 371 | + * @return Type |
|
| 368 | 372 | */ |
| 369 | 373 | public function getFolderByFolderId($folderId) |
| 370 | 374 | { |
@@ -374,7 +378,7 @@ discard block |
||
| 374 | 378 | } |
| 375 | 379 | |
| 376 | 380 | /** |
| 377 | - * @param $folderName |
|
| 381 | + * @param string $folderName |
|
| 378 | 382 | * @param string|Type\FolderIdType $parentFolderId |
| 379 | 383 | * @param array $options |
| 380 | 384 | * @return bool|Type\BaseFolderType |
@@ -439,7 +443,7 @@ discard block |
||
| 439 | 443 | * @param Type\FolderIdType $folderId |
| 440 | 444 | * @param null $syncState |
| 441 | 445 | * @param array $options |
| 442 | - * @return mixed |
|
| 446 | + * @return Type |
|
| 443 | 447 | */ |
| 444 | 448 | public function listItemChanges($folderId, $syncState = null, $options = array()) |
| 445 | 449 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace jamesiarmes\PEWS; |
| 4 | 4 | |
| 5 | 5 | use jamesiarmes\PEWS\API\ExchangeWebServices; |
| 6 | -use jamesiarmes\PEWS\API\ExchangeWebServicesAuth; |
|
| 7 | 6 | use jamesiarmes\PEWS\API\Type; |
| 8 | 7 | use jamesiarmes\PEWS\Calendar\CalendarAPI; |
| 9 | 8 | use jamesiarmes\PEWS\Mail\MailAPI; |
@@ -90,10 +90,8 @@ |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * @param mixed $location |
|
| 94 | - * @param string $user |
|
| 95 | - * @param string $password |
|
| 96 | - * @param $wsdl |
|
| 93 | + * @param string $location |
|
| 94 | + * @param string $wsdl |
|
| 97 | 95 | * @param array $options |
| 98 | 96 | */ |
| 99 | 97 | public function __construct($location, $auth, $wsdl, $options = array()) |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use jamesiarmes\PEWS\API\Type\ExchangeImpersonation; |
| 6 | 6 | use SoapClient; |
| 7 | -use GuzzleHttp; |
|
| 8 | 7 | use SoapHeader; |
| 9 | 8 | use jamesiarmes\PEWS\HttpPlayback\HttpPlayback; |
| 10 | 9 | |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Get a list of calendar items between two dates/times |
| 91 | 91 | * |
| 92 | - * @param string|DateTime $start |
|
| 93 | - * @param string|DateTime $end |
|
| 92 | + * @param string $start |
|
| 93 | + * @param string $end |
|
| 94 | 94 | * @param array $options |
| 95 | 95 | * @return CalendarItemType[] |
| 96 | 96 | */ |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * @param $id |
| 140 | 140 | * @param $changeKey |
| 141 | - * @return Type\CalendarItemType |
|
| 141 | + * @return Type |
|
| 142 | 142 | */ |
| 143 | 143 | public function getCalendarItem($id, $changeKey) |
| 144 | 144 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | * |
| 207 | 207 | * @param null $syncState |
| 208 | 208 | * @param array $options |
| 209 | - * @return mixed |
|
| 209 | + * @return Type |
|
| 210 | 210 | */ |
| 211 | 211 | public function listChanges($syncState = null, $options = array()) |
| 212 | 212 | { |