Complex classes like Client often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Client, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 13 | class Client |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Microsoft Exchange 2007 |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | const VERSION_2007 = 'Exchange2007'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Microsoft Exchange 2007 SP1 |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | const VERSION_2007_SP1 = 'Exchange2007_SP1'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Microsoft Exchange 2007 SP2 |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | const VERSION_2007_SP2 = 'Exchange2007_SP2'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Microsoft Exchange 2007 SP3 |
||
| 38 | * |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | const VERSION_2007_SP3 = 'Exchange2007_SP3'; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Microsoft Exchange 2010 |
||
| 45 | * |
||
| 46 | * @var string |
||
| 47 | */ |
||
| 48 | const VERSION_2010 = 'Exchange2010'; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Microsoft Exchange 2010 SP1 |
||
| 52 | * |
||
| 53 | * @var string |
||
| 54 | */ |
||
| 55 | const VERSION_2010_SP1 = 'Exchange2010_SP1'; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Microsoft Exchange 2010 SP2 |
||
| 59 | * |
||
| 60 | * @var string |
||
| 61 | */ |
||
| 62 | const VERSION_2010_SP2 = 'Exchange2010_SP2'; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Microsoft Exchange 2013. |
||
| 66 | * |
||
| 67 | * @var string |
||
| 68 | */ |
||
| 69 | const VERSION_2013 = 'Exchange2013'; |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Microsoft Exchange 2013 SP1. |
||
| 73 | * |
||
| 74 | * @var string |
||
| 75 | */ |
||
| 76 | const VERSION_2013_SP1 = 'Exchange2013_SP1'; |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Microsoft Exchange 2016. |
||
| 80 | * |
||
| 81 | * @var string |
||
| 82 | */ |
||
| 83 | const VERSION_2016 = 'Exchange2016'; |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Password to use when connecting to the Exchange server. |
||
| 87 | * |
||
| 88 | * @var string |
||
| 89 | */ |
||
| 90 | protected $password; |
||
| 91 | |||
| 92 | /** |
||
| 93 | * Location of the Exchange server. |
||
| 94 | * |
||
| 95 | * @var string |
||
| 96 | */ |
||
| 97 | protected $server; |
||
| 98 | |||
| 99 | /** |
||
| 100 | * SOAP client used to make the request |
||
| 101 | * |
||
| 102 | * @var \jamesiarmes\PhpEws\SoapClient |
||
| 103 | */ |
||
| 104 | protected $soap; |
||
| 105 | |||
| 106 | /** |
||
| 107 | * Username to use when connecting to the Exchange server. |
||
| 108 | * |
||
| 109 | * @var string |
||
| 110 | */ |
||
| 111 | protected $username; |
||
| 112 | |||
| 113 | /** |
||
| 114 | * Exchange impersonation |
||
| 115 | * |
||
| 116 | * @var \jamesiarmes\PhpEws\Type\ExchangeImpersonationType |
||
| 117 | */ |
||
| 118 | protected $impersonation; |
||
| 119 | |||
| 120 | /** |
||
| 121 | * Miscrosoft Exchange version that we are going to connect to |
||
| 122 | * |
||
| 123 | * @var string |
||
| 124 | * |
||
| 125 | * @see Client::VERSION_2007 |
||
| 126 | * @see Client::VERSION_2007_SP1 |
||
| 127 | * @see Client::VERSION_2007_SP2 |
||
| 128 | * @see Client::VERSION_2007_SP3 |
||
| 129 | * @see Client::VERSION_2010 |
||
| 130 | * @see Client::VERSION_2010_SP1 |
||
| 131 | * @see Client::VERSION_2010_SP2 |
||
| 132 | */ |
||
| 133 | protected $version; |
||
| 134 | |||
| 135 | /** |
||
| 136 | * Constructor for the ExchangeWebServices class |
||
| 137 | * |
||
| 138 | * @param string $server |
||
| 139 | * @param string $username |
||
| 140 | * @param string $password |
||
| 141 | * @param string $version One of the Client::VERSION_* constants. |
||
| 142 | */ |
||
| 143 | public function __construct( |
||
| 155 | |||
| 156 | /** |
||
| 157 | * Returns the SOAP Client that may be used to make calls against the server |
||
| 158 | * |
||
| 159 | * @return \jamesiarmes\PhpEws\SoapClient |
||
| 160 | */ |
||
| 161 | public function getClient() |
||
| 165 | |||
| 166 | /** |
||
| 167 | * Sets the impersonation property |
||
| 168 | * |
||
| 169 | * @param \jamesiarmes\PhpEws\Type\ExchangeImpersonationType $impersonation |
||
| 170 | */ |
||
| 171 | public function setImpersonation($impersonation) |
||
| 177 | |||
| 178 | /** |
||
| 179 | * Sets the password property |
||
| 180 | * |
||
| 181 | * @param string $password |
||
| 182 | */ |
||
| 183 | public function setPassword($password) |
||
| 189 | |||
| 190 | /** |
||
| 191 | * Sets the server property |
||
| 192 | * |
||
| 193 | * @param string $server |
||
| 194 | */ |
||
| 195 | public function setServer($server) |
||
| 201 | |||
| 202 | /** |
||
| 203 | * Sets the user name property |
||
| 204 | * |
||
| 205 | * @param string $username |
||
| 206 | */ |
||
| 207 | public function setUsername($username) |
||
| 213 | |||
| 214 | /** |
||
| 215 | * Sets the version property |
||
| 216 | * |
||
| 217 | * @param string $version |
||
| 218 | */ |
||
| 219 | public function setVersion($version) |
||
| 225 | |||
| 226 | /** |
||
| 227 | * Function Description |
||
| 228 | * |
||
| 229 | * @param \jamesiarmes\PhpEws\Request\AddDelegateType $request |
||
| 230 | * @return \jamesiarmes\PhpEws\Response\AddDelegateResponseMessageType |
||
| 231 | */ |
||
| 232 | public function AddDelegate($request) |
||
| 239 | |||
| 240 | /** |
||
| 241 | * Adds a distribution group to the instant messaging (IM) list in the |
||
| 242 | * Unified Contact Store. |
||
| 243 | * |
||
| 244 | * @since Exchange 2013 |
||
| 245 | * |
||
| 246 | * @param \jamesiarmes\PhpEws\Request\AddDistributionGroupToImListType $request |
||
| 247 | * @return \jamesiarmes\PhpEws\Response\AddDistributionGroupToImListResponseMessageType |
||
| 248 | */ |
||
| 249 | public function AddDistributionGroupToImList($request) |
||
| 256 | |||
| 257 | /** |
||
| 258 | * Adds an existing instant messaging (IM) contact to a group. |
||
| 259 | * |
||
| 260 | * @since Exchange 2013 |
||
| 261 | * |
||
| 262 | * @param \jamesiarmes\PhpEws\Request\AddImContactToGroup $request |
||
| 263 | * @return \jamesiarmes\PhpEws\Response\AddImContactToGroupResponseMessageType |
||
| 264 | */ |
||
| 265 | public function AddImContactToGroup($request) |
||
| 272 | |||
| 273 | /** |
||
| 274 | * Adds a new instant messaging (IM) group to a mailbox. |
||
| 275 | * |
||
| 276 | * @since Exchange 2013 |
||
| 277 | * |
||
| 278 | * @param \jamesiarmes\PhpEws\Request\AddImGroupType $request |
||
| 279 | * @return \jamesiarmes\PhpEws\Response\AddImGroupResponseMessageType |
||
| 280 | */ |
||
| 281 | public function AddImGroup($request) |
||
| 288 | |||
| 289 | /** |
||
| 290 | * Adds a new contact to an instant messaging (IM) group. |
||
| 291 | * |
||
| 292 | * @since Exchange 2013 |
||
| 293 | * |
||
| 294 | * @param \jamesiarmes\PhpEws\Request\AddNewImContactToGroup $request |
||
| 295 | * @return \jamesiarmes\PhpEws\Response\AddNewImContactToGroupResponseMessageType |
||
| 296 | */ |
||
| 297 | public function AddNewImContactToGroup($request) |
||
| 304 | |||
| 305 | /** |
||
| 306 | * Adds a new contact to a group based on a contact's phone number. |
||
| 307 | * |
||
| 308 | * @since Exchange 2013 |
||
| 309 | * |
||
| 310 | * @param \jamesiarmes\PhpEws\Request\AddNewTelUriContactToGroupType $request |
||
| 311 | * @return \jamesiarmes\PhpEws\Response\AddNewTelUriContactToGroupResponse |
||
| 312 | */ |
||
| 313 | public function AddNewTelUriContactToGroup($request) |
||
| 320 | |||
| 321 | /** |
||
| 322 | * Sets a one-time or follow up action on all the items in a conversation. |
||
| 323 | * |
||
| 324 | * This operation allows you to categorize, move, copy, delete, and set the |
||
| 325 | * read state on all items in a conversation. Actions can also be set for |
||
| 326 | * new messages in a conversation. |
||
| 327 | * |
||
| 328 | * @since Exchange 2010 SP1 |
||
| 329 | * |
||
| 330 | * @param \jamesiarmes\PhpEws\Request\ApplyConversationActionType $request |
||
| 331 | * @return \jamesiarmes\PhpEws\Response\ApplyConversationActionResponseType |
||
| 332 | */ |
||
| 333 | public function ApplyConversationAction($request) |
||
| 340 | |||
| 341 | /** |
||
| 342 | * Moves an item into the mailbox user's archive mailbox. |
||
| 343 | * |
||
| 344 | * @since Exchange 2013 |
||
| 345 | * |
||
| 346 | * @param \jamesiarmes\PhpEws\Request\ArchiveItemType $request |
||
| 347 | * @return \jamesiarmes\PhpEws\Response\ArchiveItemResponse |
||
| 348 | */ |
||
| 349 | public function ArchiveItem($request) |
||
| 356 | |||
| 357 | /** |
||
| 358 | * Function Description |
||
| 359 | * |
||
| 360 | * @param \jamesiarmes\PhpEws\Request\ConvertIdType $request |
||
| 361 | * @return \jamesiarmes\PhpEws\Response\ConvertIdResponseType |
||
| 362 | */ |
||
| 363 | public function ConvertId($request) |
||
| 370 | |||
| 371 | /** |
||
| 372 | * Function Description |
||
| 373 | * |
||
| 374 | * @param \jamesiarmes\PhpEws\Request\CopyFolderType $request |
||
| 375 | * @return \jamesiarmes\PhpEws\Response\CopyFolderResponseType |
||
| 376 | */ |
||
| 377 | public function CopyFolder($request) |
||
| 384 | |||
| 385 | /** |
||
| 386 | * Function Description |
||
| 387 | * |
||
| 388 | * @param \jamesiarmes\PhpEws\Request\CopyItemType $request |
||
| 389 | * @return \jamesiarmes\PhpEws\Response\CopyItemResponseType |
||
| 390 | */ |
||
| 391 | public function CopyItem($request) |
||
| 398 | |||
| 399 | /** |
||
| 400 | * Function Description |
||
| 401 | * |
||
| 402 | * @param \jamesiarmes\PhpEws\Request\CreateAttachmentType $request |
||
| 403 | * @return \jamesiarmes\PhpEws\Response\CreateAttachmentResponseType |
||
| 404 | */ |
||
| 405 | public function CreateAttachment($request) |
||
| 412 | |||
| 413 | /** |
||
| 414 | * Function Description |
||
| 415 | * |
||
| 416 | * @param \jamesiarmes\PhpEws\Request\CreateFolderType $request |
||
| 417 | * @return \jamesiarmes\PhpEws\Response\CreateFolderResponseType |
||
| 418 | */ |
||
| 419 | public function CreateFolder($request) |
||
| 426 | |||
| 427 | /** |
||
| 428 | * Creates a folder hierarchy. |
||
| 429 | * |
||
| 430 | * @since Exchange 2013 |
||
| 431 | * |
||
| 432 | * @param \jamesiarmes\PhpEws\Request\CreateFolderPathType $request |
||
| 433 | * @return \jamesiarmes\PhpEws\Response\CreateFolderPathResponseType |
||
| 434 | */ |
||
| 435 | public function CreateFolderPath($request) |
||
| 442 | |||
| 443 | /** |
||
| 444 | * Function Description |
||
| 445 | * |
||
| 446 | * @param \jamesiarmes\PhpEws\Request\CreateItemType $request |
||
| 447 | * @return \jamesiarmes\PhpEws\Response\CreateItemResponseType |
||
| 448 | */ |
||
| 449 | public function CreateItem($request) |
||
| 456 | |||
| 457 | /** |
||
| 458 | * Function Description |
||
| 459 | * |
||
| 460 | * @param \jamesiarmes\PhpEws\Request\CreateManagedFolderRequestType $request |
||
| 461 | * @return \jamesiarmes\PhpEws\Response\CreateManagedFolderResponseType |
||
| 462 | */ |
||
| 463 | public function CreateManagedFolder($request) |
||
| 470 | |||
| 471 | /** |
||
| 472 | * Creates a user configuration object on a folder. |
||
| 473 | * |
||
| 474 | * @since Exchange 2010 |
||
| 475 | * |
||
| 476 | * @param \jamesiarmes\PhpEws\Request\CreateUserConfigurationType $request |
||
| 477 | * @return \jamesiarmes\PhpEws\Response\CreateUserConfigurationResponseType |
||
| 478 | */ |
||
| 479 | public function CreateUserConfiguration($request) |
||
| 486 | |||
| 487 | /** |
||
| 488 | * Function Description |
||
| 489 | * |
||
| 490 | * @param \jamesiarmes\PhpEws\Request\DeleteAttachmentType $request |
||
| 491 | * @return \jamesiarmes\PhpEws\Response\DeleteAttachmentResponseType |
||
| 492 | */ |
||
| 493 | public function DeleteAttachment($request) |
||
| 500 | |||
| 501 | /** |
||
| 502 | * Function Description |
||
| 503 | * |
||
| 504 | * @param \jamesiarmes\PhpEws\Request\DeleteFolderType $request |
||
| 505 | * @return \jamesiarmes\PhpEws\Response\DeleteFolderResponseType |
||
| 506 | */ |
||
| 507 | public function DeleteFolder($request) |
||
| 514 | |||
| 515 | /** |
||
| 516 | * Function Description |
||
| 517 | * |
||
| 518 | * @param \jamesiarmes\PhpEws\Request\DeleteItemType $request |
||
| 519 | * @return \jamesiarmes\PhpEws\Response\DeleteItemResponseType |
||
| 520 | */ |
||
| 521 | public function DeleteItem($request) |
||
| 528 | |||
| 529 | /** |
||
| 530 | * Deletes a user configuration object on a folder. |
||
| 531 | * |
||
| 532 | * @since Exchange 2010 |
||
| 533 | * |
||
| 534 | * @param \jamesiarmes\PhpEws\Request\DeleteUserConfigurationType $request |
||
| 535 | * @return \jamesiarmes\PhpEws\Response\DeleteUserConfigurationResponseType |
||
| 536 | */ |
||
| 537 | public function DeleteUserConfiguration($request) |
||
| 544 | |||
| 545 | /** |
||
| 546 | * Disables a mail app for Outlook. |
||
| 547 | * |
||
| 548 | * @since Exchange 2013 |
||
| 549 | * |
||
| 550 | * @param \jamesiarmes\PhpEws\Request\DisableAppType $request |
||
| 551 | * @return \jamesiarmes\PhpEws\Response\DisableAppResponseType |
||
| 552 | */ |
||
| 553 | public function DisableApp($request) |
||
| 560 | |||
| 561 | /** |
||
| 562 | * Terminates a telephone call. |
||
| 563 | * |
||
| 564 | * @since Exchange 2010 |
||
| 565 | * |
||
| 566 | * @param \jamesiarmes\PhpEws\Request\DisconnectPhoneCallType $request |
||
| 567 | * @return \jamesiarmes\PhpEws\Response\DisconnectPhoneCallResponseMessageType |
||
| 568 | */ |
||
| 569 | public function DisconnectPhoneCall($request) |
||
| 576 | |||
| 577 | /** |
||
| 578 | * Empties folders in a mailbox. |
||
| 579 | * |
||
| 580 | * Optionally, this operation enables you to delete the subfolders of the |
||
| 581 | * specified folder. When a subfolder is deleted, the subfolder and the |
||
| 582 | * messages within the subfolder are deleted. |
||
| 583 | * |
||
| 584 | * @since Exchange 2010 |
||
| 585 | * |
||
| 586 | * @param \jamesiarmes\PhpEws\Request\EmptyFolderType $request |
||
| 587 | * @return \jamesiarmes\PhpEws\Response\EmptyFolderResponseType |
||
| 588 | */ |
||
| 589 | public function EmptyFolder($request) |
||
| 596 | |||
| 597 | /** |
||
| 598 | * Function Description |
||
| 599 | * |
||
| 600 | * @param \jamesiarmes\PhpEws\Request\ExpandDLType $request |
||
| 601 | * @return \jamesiarmes\PhpEws\Response\ExpandDLResponseType |
||
| 602 | */ |
||
| 603 | public function ExpandDL($request) |
||
| 610 | |||
| 611 | /** |
||
| 612 | * Exports items out of a mailbox. |
||
| 613 | * |
||
| 614 | * @since Exchange 2010 SP1 |
||
| 615 | * |
||
| 616 | * @param \jamesiarmes\PhpEws\Request\ExportItemsType $request |
||
| 617 | * @return \jamesiarmes\PhpEws\Response\ExportItemsResponseType |
||
| 618 | */ |
||
| 619 | public function ExportItems($request) |
||
| 626 | |||
| 627 | /** |
||
| 628 | * Enumerates a list of conversations in a folder. |
||
| 629 | * |
||
| 630 | * @param \jamesiarmes\PhpEws\Request\FindConversationType $request |
||
| 631 | * @return \jamesiarmes\PhpEws\Response\FindConversationResponseMessageType |
||
| 632 | */ |
||
| 633 | public function FindConversation($request) |
||
| 640 | |||
| 641 | /** |
||
| 642 | * Function Description |
||
| 643 | * |
||
| 644 | * @param \jamesiarmes\PhpEws\Request\FindFolderType $request |
||
| 645 | * @return \jamesiarmes\PhpEws\Response\FindFolderResponseType |
||
| 646 | */ |
||
| 647 | public function FindFolder($request) |
||
| 654 | |||
| 655 | /** |
||
| 656 | * Function Description |
||
| 657 | * |
||
| 658 | * @param \jamesiarmes\PhpEws\Request\FindItemType $request |
||
| 659 | * @return \jamesiarmes\PhpEws\Response\FindItemResponseType |
||
| 660 | */ |
||
| 661 | public function FindItem($request) |
||
| 668 | |||
| 669 | /** |
||
| 670 | * Finds messages that meet the specified criteria. |
||
| 671 | * |
||
| 672 | * @since Exchange 2010 |
||
| 673 | * |
||
| 674 | * @param \jamesiarmes\PhpEws\Request\FindMessageTrackingReportRequestType $request |
||
| 675 | * @return \jamesiarmes\PhpEws\Response\FindMessageTrackingReportResponseMessageType |
||
| 676 | */ |
||
| 677 | public function FindMessageTrackingReport($request) |
||
| 684 | |||
| 685 | /** |
||
| 686 | * Returns all persona objects from a specified Contacts folder or retrieves |
||
| 687 | * contacts that match a specified query string. |
||
| 688 | * |
||
| 689 | * @since Exchange 2013 |
||
| 690 | * |
||
| 691 | * @param \jamesiarmes\PhpEws\Request\FindPeopleType $request |
||
| 692 | * @return \jamesiarmes\PhpEws\Response\FindPeopleResponseMessageType |
||
| 693 | */ |
||
| 694 | public function FindPeople($request) |
||
| 701 | |||
| 702 | /** |
||
| 703 | * Retrieves app manifests. |
||
| 704 | * |
||
| 705 | * @since Exchange 2013 SP1 |
||
| 706 | * |
||
| 707 | * @param \jamesiarmes\PhpEws\Request\GetAppManifestsType $request |
||
| 708 | * @return \jamesiarmes\PhpEws\Response\GetAppManifestsResponseType |
||
| 709 | */ |
||
| 710 | public function GetAppManifests($request) |
||
| 717 | |||
| 718 | /** |
||
| 719 | * Retrieves the URL for the app marketplace that a client can visit to |
||
| 720 | * acquire apps to install in a mailbox. |
||
| 721 | * |
||
| 722 | * @since Exchange 2013 SP1 |
||
| 723 | * |
||
| 724 | * @param \jamesiarmes\PhpEws\Request\GetAppMarketplaceUrl $request |
||
| 725 | * @return \jamesiarmes\PhpEws\Response\GetAppMarketplaceUrlResponseMessageType |
||
| 726 | */ |
||
| 727 | public function GetAppMarketplaceUrl($request) |
||
| 734 | |||
| 735 | /** |
||
| 736 | * Function Description |
||
| 737 | * |
||
| 738 | * @param \jamesiarmes\PhpEws\Request\GetAttachmentType $request |
||
| 739 | * @return \jamesiarmes\PhpEws\Response\GetAttachmentResponseType |
||
| 740 | */ |
||
| 741 | public function GetAttachment($request) |
||
| 748 | |||
| 749 | /** |
||
| 750 | * Gets a client access token for a mail app for Outlook. |
||
| 751 | * |
||
| 752 | * @since Exchange 2013 |
||
| 753 | * |
||
| 754 | * @param \jamesiarmes\PhpEws\Request\GetClientAccessTokenType $request |
||
| 755 | * @return \jamesiarmes\PhpEws\Response\GetClientAccessTokenResponseType |
||
| 756 | */ |
||
| 757 | public function GetClientAccessToken($request) |
||
| 764 | |||
| 765 | /** |
||
| 766 | * Retrieves one or more sets of items that are organized in to nodes in a |
||
| 767 | * conversation. |
||
| 768 | * |
||
| 769 | * @since Exchange 2013 |
||
| 770 | * |
||
| 771 | * @param \jamesiarmes\PhpEws\Request\GetConversationItemsType $request |
||
| 772 | * @return \jamesiarmes\PhpEws\Response\GetConversationItemsResponseType |
||
| 773 | */ |
||
| 774 | public function GetConversationItems($request) |
||
| 781 | |||
| 782 | /** |
||
| 783 | * Function Description |
||
| 784 | * |
||
| 785 | * @param \jamesiarmes\PhpEws\Request\GetDelegateType $request |
||
| 786 | * @return \jamesiarmes\PhpEws\Response\GetDelegateResponseMessageType |
||
| 787 | */ |
||
| 788 | public function GetDelegate($request) |
||
| 795 | |||
| 796 | /** |
||
| 797 | * Returns configuration information for in-place holds, saved discovery |
||
| 798 | * searches, and the mailboxes that are enabled for discovery search. |
||
| 799 | * |
||
| 800 | * @since Exchange 2013 |
||
| 801 | * |
||
| 802 | * @param \jamesiarmes\PhpEws\Request\GetDiscoverySearchConfigurationType $request |
||
| 803 | * @return \jamesiarmes\PhpEws\Response\GetDiscoverySearchConfigurationResponseMessageType |
||
| 804 | */ |
||
| 805 | public function GetDiscoverySearchConfiguration($request) |
||
| 812 | |||
| 813 | /** |
||
| 814 | * Function Description |
||
| 815 | * |
||
| 816 | * @param \jamesiarmes\PhpEws\Request\GetEventsType $request |
||
| 817 | * @return \jamesiarmes\PhpEws\Response\GetEventsResponseType |
||
| 818 | */ |
||
| 819 | public function GetEvents($request) |
||
| 826 | |||
| 827 | /** |
||
| 828 | * Function Description |
||
| 829 | * |
||
| 830 | * @param \jamesiarmes\PhpEws\Request\GetFolderType $request |
||
| 831 | * @return \jamesiarmes\PhpEws\Response\GetFolderResponseType |
||
| 832 | */ |
||
| 833 | public function GetFolder($request) |
||
| 840 | |||
| 841 | /** |
||
| 842 | * Retrieves the mailboxes that are under a specific hold and the associated |
||
| 843 | * hold query. |
||
| 844 | * |
||
| 845 | * @since Exchange 2013 |
||
| 846 | * |
||
| 847 | * @param \jamesiarmes\PhpEws\Request\GetHoldOnMailboxesType $request |
||
| 848 | * @return \jamesiarmes\PhpEws\Response\GetHoldOnMailboxesResponseMessageType |
||
| 849 | */ |
||
| 850 | public function GetHoldOnMailboxes($request) |
||
| 857 | |||
| 858 | /** |
||
| 859 | * Retrieves the list of instant messaging (IM) groups and IM contact |
||
| 860 | * personas in a mailbox. |
||
| 861 | * |
||
| 862 | * @since Exchange 2013 |
||
| 863 | * |
||
| 864 | * @param \jamesiarmes\PhpEws\Request\GetImItemListType $request |
||
| 865 | * @return \jamesiarmes\PhpEws\Response\GetImItemListResponseMessageType |
||
| 866 | */ |
||
| 867 | public function GetImItemList($request) |
||
| 874 | |||
| 875 | /** |
||
| 876 | * Retrieves information about instant messaging (IM) groups and IM contact |
||
| 877 | * personas. |
||
| 878 | * |
||
| 879 | * @since Exchange 2013 |
||
| 880 | * |
||
| 881 | * @param \jamesiarmes\PhpEws\Request\GetImItemsType $request |
||
| 882 | * @return \jamesiarmes\PhpEws\Response\GetImItemsResponse |
||
| 883 | */ |
||
| 884 | public function GetImItems($request) |
||
| 891 | |||
| 892 | /** |
||
| 893 | * Retrieves Inbox rules in the identified user's mailbox. |
||
| 894 | * |
||
| 895 | * @since Exchange 2010 |
||
| 896 | * |
||
| 897 | * @param \jamesiarmes\PhpEws\Request\GetInboxRulesRequestType $request |
||
| 898 | * @return \jamesiarmes\PhpEws\Response\GetInboxRulesResponseType |
||
| 899 | */ |
||
| 900 | public function GetInboxRules($request) |
||
| 907 | |||
| 908 | /** |
||
| 909 | * Function Description |
||
| 910 | * |
||
| 911 | * @param \jamesiarmes\PhpEws\Request\GetItemType $request |
||
| 912 | * @return \jamesiarmes\PhpEws\Response\GetItemResponseType |
||
| 913 | */ |
||
| 914 | public function GetItem($request) |
||
| 921 | |||
| 922 | /** |
||
| 923 | * Retrieves the mail tips information for the specified mailbox. |
||
| 924 | * |
||
| 925 | * @since Exchange 2010 |
||
| 926 | * |
||
| 927 | * @param \jamesiarmes\PhpEws\Request\GetMailTipsType $request |
||
| 928 | * @return \jamesiarmes\PhpEws\Response\GetMailTipsResponseMessageType |
||
| 929 | */ |
||
| 930 | public function GetMailTips($request) |
||
| 937 | |||
| 938 | /** |
||
| 939 | * Retrieves tracking information about the specified messages. |
||
| 940 | * |
||
| 941 | * @since Exchange 2010 |
||
| 942 | * |
||
| 943 | * @param \jamesiarmes\PhpEws\Request\GetMessageTrackingReportRequestType $request |
||
| 944 | * @return \jamesiarmes\PhpEws\Response\GetMessageTrackingReportResponseMessageType |
||
| 945 | */ |
||
| 946 | public function GetMessageTrackingReport($request) |
||
| 953 | |||
| 954 | /** |
||
| 955 | * Retrieves details about items that cannot be indexed. |
||
| 956 | * |
||
| 957 | * This includes, but is not limited to, the item identifier, an error code, |
||
| 958 | * an error description, when an attempt was made to index the item, and |
||
| 959 | * additional information about the file. |
||
| 960 | * |
||
| 961 | * @since Exchange 2013 |
||
| 962 | * |
||
| 963 | * @param \jamesiarmes\PhpEws\Request\GetNonIndexableItemDetailsType $request |
||
| 964 | * @return \jamesiarmes\PhpEws\Response\GetNonIndexableItemDetailsResponseMessageType |
||
| 965 | */ |
||
| 966 | public function GetNonIndexableItemDetails($request) |
||
| 973 | |||
| 974 | /** |
||
| 975 | * Retrieves the count of items that cannot be indexed in a mailbox. |
||
| 976 | * |
||
| 977 | * @since Exchange 2013 |
||
| 978 | * |
||
| 979 | * @param \jamesiarmes\PhpEws\Request\GetNonIndexableItemStatisticsType $request |
||
| 980 | * @return \jamesiarmes\PhpEws\Response\GetNonIndexableItemStatisticsResponseMessageType |
||
| 981 | */ |
||
| 982 | public function GetNonIndexableItemStatistics($request) |
||
| 989 | |||
| 990 | /** |
||
| 991 | * Retrieve the timezones supported by the server. |
||
| 992 | * |
||
| 993 | * @since Exchange 2010 |
||
| 994 | * |
||
| 995 | * @param \jamesiarmes\PhpEws\Request\GetServerTimeZonesType $request |
||
| 996 | * @return \jamesiarmes\PhpEws\Response\GetServerTimeZonesResponseType |
||
| 997 | */ |
||
| 998 | public function GetServerTimeZones($request) |
||
| 1005 | |||
| 1006 | /** |
||
| 1007 | * Function Description |
||
| 1008 | * |
||
| 1009 | * @param \jamesiarmes\PhpEws\Request\GetUserAvailabilityRequestType $request |
||
| 1010 | * @return \jamesiarmes\PhpEws\Response\GetUserAvailabilityResponseType |
||
| 1011 | */ |
||
| 1012 | public function GetUserAvailability($request) |
||
| 1019 | |||
| 1020 | /** |
||
| 1021 | * Function Description |
||
| 1022 | * |
||
| 1023 | * @param \jamesiarmes\PhpEws\Request\GetUserOofSettingsRequest $request |
||
| 1024 | * @return \jamesiarmes\PhpEws\Response\GetUserOofSettingsResponse |
||
| 1025 | */ |
||
| 1026 | public function GetUserOofSettings($request) |
||
| 1033 | |||
| 1034 | /** |
||
| 1035 | * Function Description |
||
| 1036 | * |
||
| 1037 | * @param \jamesiarmes\PhpEws\Request\MoveFolderType $request |
||
| 1038 | * @return \jamesiarmes\PhpEws\Response\MoveFolderResponseType |
||
| 1039 | */ |
||
| 1040 | public function MoveFolder($request) |
||
| 1047 | |||
| 1048 | /** |
||
| 1049 | * Function Description |
||
| 1050 | * |
||
| 1051 | * @param \jamesiarmes\PhpEws\Request\MoveItemType $request |
||
| 1052 | * @return \jamesiarmes\PhpEws\Response\MoveItemResponseType |
||
| 1053 | */ |
||
| 1054 | public function MoveItem($request) |
||
| 1061 | |||
| 1062 | /** |
||
| 1063 | * Function Description |
||
| 1064 | * |
||
| 1065 | * @param \jamesiarmes\PhpEws\Request\RemoveDelegateType $request |
||
| 1066 | * @return \jamesiarmes\PhpEws\Response\RemoveDelegateResponseMessageType |
||
| 1067 | */ |
||
| 1068 | public function RemoveDelegate($request) |
||
| 1075 | |||
| 1076 | /** |
||
| 1077 | * Function Description |
||
| 1078 | * |
||
| 1079 | * @param \jamesiarmes\PhpEws\Request\ResolveNamesType $request |
||
| 1080 | * @return \jamesiarmes\PhpEws\Response\ResolveNamesResponseType |
||
| 1081 | */ |
||
| 1082 | public function ResolveNames($request) |
||
| 1089 | |||
| 1090 | /** |
||
| 1091 | * Function Description |
||
| 1092 | * |
||
| 1093 | * @param \jamesiarmes\PhpEws\Request\SendItemType $request |
||
| 1094 | * @return \jamesiarmes\PhpEws\Response\SendItemResponseType |
||
| 1095 | */ |
||
| 1096 | public function SendItem($request) |
||
| 1103 | |||
| 1104 | /** |
||
| 1105 | * Function Description |
||
| 1106 | * |
||
| 1107 | * @param \jamesiarmes\PhpEws\Request\SetUserOofSettingsRequest $request |
||
| 1108 | * @return \jamesiarmes\PhpEws\Response\SetUserOofSettingsResponse |
||
| 1109 | */ |
||
| 1110 | public function SetUserOofSettings($request) |
||
| 1117 | |||
| 1118 | /** |
||
| 1119 | * Function Description |
||
| 1120 | * |
||
| 1121 | * @param \jamesiarmes\PhpEws\Request\SubscribeType $request |
||
| 1122 | * @return \jamesiarmes\PhpEws\Response\SubscribeResponseType |
||
| 1123 | */ |
||
| 1124 | public function Subscribe($request) |
||
| 1131 | |||
| 1132 | /** |
||
| 1133 | * Function Description |
||
| 1134 | * |
||
| 1135 | * @param \jamesiarmes\PhpEws\Request\SyncFolderHierarchyType $request |
||
| 1136 | * @return \jamesiarmes\PhpEws\Response\SyncFolderHierarchyResponseType |
||
| 1137 | */ |
||
| 1138 | public function SyncFolderHierarchy($request) |
||
| 1145 | |||
| 1146 | /** |
||
| 1147 | * Function Description |
||
| 1148 | * |
||
| 1149 | * @param \jamesiarmes\PhpEws\Request\SyncFolderItemsType $request |
||
| 1150 | * @return \jamesiarmes\PhpEws\Response\SyncFolderItemsResponseType |
||
| 1151 | */ |
||
| 1152 | public function SyncFolderItems($request) |
||
| 1159 | |||
| 1160 | /** |
||
| 1161 | * Function Description |
||
| 1162 | * |
||
| 1163 | * @param \jamesiarmes\PhpEws\Request\UnsubscribeType $request |
||
| 1164 | * @return \jamesiarmes\PhpEws\Response\UnsubscribeResponseType |
||
| 1165 | */ |
||
| 1166 | public function Unsubscribe($request) |
||
| 1173 | |||
| 1174 | /** |
||
| 1175 | * Function Description |
||
| 1176 | * |
||
| 1177 | * @param \jamesiarmes\PhpEws\Request\UpdateDelegateType $request |
||
| 1178 | * @return \jamesiarmes\PhpEws\Response\UpdateDelegateResponseMessageType |
||
| 1179 | */ |
||
| 1180 | public function UpdateDelegate($request) |
||
| 1187 | |||
| 1188 | /** |
||
| 1189 | * Function Description |
||
| 1190 | * |
||
| 1191 | * @param \jamesiarmes\PhpEws\Request\UpdateFolderType $request |
||
| 1192 | * @return \jamesiarmes\PhpEws\Response\UpdateFolderResponseType |
||
| 1193 | */ |
||
| 1194 | public function UpdateFolder($request) |
||
| 1201 | |||
| 1202 | /** |
||
| 1203 | * Function Description |
||
| 1204 | * |
||
| 1205 | * @param \jamesiarmes\PhpEws\Request\UpdateItemType $request |
||
| 1206 | * @return \jamesiarmes\PhpEws\Response\UpdateItemResponseType |
||
| 1207 | */ |
||
| 1208 | public function UpdateItem($request) |
||
| 1215 | |||
| 1216 | /** |
||
| 1217 | * Initializes the SoapClient object to make a request |
||
| 1218 | * |
||
| 1219 | * @return \jamesiarmes\PhpEws\SoapClient |
||
| 1220 | * |
||
| 1221 | * TODO: Build a class map that we can pass to the client. |
||
| 1222 | */ |
||
| 1223 | protected function initializeSoapClient() |
||
| 1238 | |||
| 1239 | /** |
||
| 1240 | * Process a response to verify that it succeeded and take the appropriate |
||
| 1241 | * action |
||
| 1242 | * |
||
| 1243 | * @throws \Exception |
||
| 1244 | * |
||
| 1245 | * @param \stdClass $response |
||
| 1246 | * @return \stdClass |
||
| 1247 | */ |
||
| 1248 | protected function processResponse($response) |
||
| 1261 | } |
||
| 1262 |