From ad24ca09cdbacde1200237dc7d5862b631d76bf0 Mon Sep 17 00:00:00 2001 From: Gareth Parker Date: Sat, 24 Aug 2024 00:09:23 +0100 Subject: [PATCH] Adding a concrete method for is* methods --- src/API/Message/AddDelegateType.php | 23 +- .../Message/ApplyConversationActionType.php | 23 +- .../Message/ArrayOfResponseMessagesType.php | 991 +++++++++++++++++- .../BaseDelegateResponseMessageType.php | 23 +- .../CreateManagedFolderRequestType.php | 23 +- src/API/Message/DeleteAttachmentType.php | 23 +- src/API/Message/ExportItemsType.php | 23 +- .../FindConversationResponseMessageType.php | 23 +- src/API/Message/FindConversationType.php | 23 +- src/API/Message/FindItemType.php | 23 +- .../FindMailboxStatisticsByKeywordsType.php | 111 +- .../FindMessageTrackingReportRequestType.php | 23 +- ...ssageTrackingReportResponseMessageType.php | 89 +- src/API/Message/GetAttachmentType.php | 23 +- src/API/Message/GetDelegateType.php | 23 +- src/API/Message/GetInboxRulesResponseType.php | 23 +- .../GetMailTipsResponseMessageType.php | 23 +- src/API/Message/GetMailTipsType.php | 45 +- .../GetMessageTrackingReportRequestType.php | 23 +- ...ssageTrackingReportResponseMessageType.php | 67 +- .../GetRoomListsResponseMessageType.php | 23 +- .../Message/GetRoomsResponseMessageType.php | 23 +- .../GetServerTimeZonesResponseMessageType.php | 23 +- src/API/Message/GetServerTimeZonesType.php | 23 +- ...erviceConfigurationResponseMessageType.php | 23 +- .../Message/GetServiceConfigurationType.php | 23 +- .../GetSharingMetadataResponseMessageType.php | 45 +- src/API/Message/GetSharingMetadataType.php | 23 +- .../GetStreamingEventsResponseMessageType.php | 45 +- src/API/Message/GetStreamingEventsType.php | 23 +- .../GetUserAvailabilityRequestType.php | 23 +- .../GetUserAvailabilityResponseType.php | 23 +- src/API/Message/GetUserConfigurationType.php | 23 +- src/API/Message/RemoveDelegateType.php | 23 +- src/API/Message/SuggestionsResponseType.php | 23 +- src/API/Message/SyncFolderItemsType.php | 23 +- src/API/Message/UpdateDelegateType.php | 23 +- src/API/Message/UpdateFolderType.php | 23 +- .../Message/UpdateInboxRulesResponseType.php | 23 +- src/API/Message/UpdateItemType.php | 23 +- src/API/Message/UploadItemsType.php | 23 +- src/API/Type/ArrayOfAttachmentsType.php | 45 +- .../Type/ArrayOfAttendeeConflictDataType.php | 89 +- src/API/Type/ArrayOfDLExpansionType.php | 23 +- src/API/Type/ArrayOfFoldersType.php | 111 +- src/API/Type/ArrayOfRealItemsType.php | 243 ++++- src/API/Type/ArrayOfResolutionType.php | 23 +- src/API/Type/ArrayOfRuleOperationsType.php | 67 +- .../Type/ArrayOfTrackingPropertiesType.php | 23 +- src/API/Type/ArrayOfTransitionsType.php | 89 +- src/API/Type/BaseFolderType.php | 23 +- src/API/Type/BaseSubscriptionRequestType.php | 23 +- src/API/Type/CalendarItemType.php | 111 +- src/API/Type/CalendarPermissionSetType.php | 45 +- src/API/Type/ChangeDescriptionType.php | 67 +- src/API/Type/ContactItemType.php | 199 +++- src/API/Type/ContainsExpressionType.php | 67 +- src/API/Type/ConversationActionType.php | 23 +- src/API/Type/ConversationType.php | 221 +++- src/API/Type/DistributionListType.php | 23 +- src/API/Type/ExcludesType.php | 67 +- src/API/Type/ExistsType.php | 67 +- src/API/Type/ExtendedPropertyType.php | 26 +- src/API/Type/FieldOrderType.php | 67 +- src/API/Type/FindItemParentType.php | 23 +- .../FindMessageTrackingSearchResultType.php | 45 +- src/API/Type/FreeBusyViewOptionsType.php | 23 +- src/API/Type/FreeBusyViewType.php | 45 +- src/API/Type/ItemType.php | 67 +- .../Type/MailTipsServiceConfigurationType.php | 23 +- src/API/Type/MailTipsType.php | 23 +- src/API/Type/MeetingRequestMessageType.php | 111 +- src/API/Type/MessageTrackingReportType.php | 67 +- src/API/Type/MessageType.php | 5 - .../MultipleOperandBooleanExpressionType.php | 265 ++++- src/API/Type/NonEmptyArrayOfAllItemsType.php | 485 ++++++++- .../Type/NonEmptyArrayOfAlternateIdsType.php | 67 +- .../Type/NonEmptyArrayOfAttachmentsType.php | 45 +- .../Type/NonEmptyArrayOfBaseFolderIdsType.php | 45 +- .../Type/NonEmptyArrayOfBaseItemIdsType.php | 67 +- ...ptyArrayOfFolderChangeDescriptionsType.php | 67 +- src/API/Type/NonEmptyArrayOfFoldersType.php | 111 +- ...EmptyArrayOfItemChangeDescriptionsType.php | 67 +- .../NonEmptyArrayOfPathsToElementType.php | 67 +- .../NonEmptyArrayOfResponseObjectsType.php | 243 ++++- src/API/Type/NotType.php | 265 ++++- src/API/Type/NotificationType.php | 177 +++- src/API/Type/PermissionSetType.php | 45 +- src/API/Type/ProtectionRuleActionType.php | 23 +- src/API/Type/ProtectionRuleAndType.php | 111 +- src/API/Type/ProtectionRuleConditionType.php | 45 +- ...rotectionRulesServiceConfigurationType.php | 45 +- src/API/Type/RecipientTrackingEventType.php | 45 +- src/API/Type/ReplyBodyType.php | 8 +- src/API/Type/RestrictionType.php | 265 ++++- src/API/Type/RuleActionsType.php | 111 +- src/API/Type/RuleOperationErrorType.php | 23 +- src/API/Type/RulePredicatesType.php | 265 ++++- .../Type/SerializedSecurityContextType.php | 45 +- .../Type/StreamingSubscriptionRequestType.php | 23 +- src/API/Type/SuggestionDayResultType.php | 23 +- .../Type/SyncFolderHierarchyChangesType.php | 67 +- src/API/Type/SyncFolderItemsChangesType.php | 89 +- src/API/Type/TaskType.php | 45 +- src/API/Type/TimeZoneDefinitionType.php | 45 +- src/API/Type/TwoOperandExpressionType.php | 67 +- .../UserConfigurationDictionaryObjectType.php | 23 +- src/API/Type/UserConfigurationType.php | 23 +- src/API/Type/WeeklyRecurrencePatternType.php | 23 +- src/API/Type/WorkingHoursType.php | 23 +- src/API/Type/WorkingPeriodType.php | 23 +- src/Generator/ClassGenerator.php | 40 +- 112 files changed, 7389 insertions(+), 476 deletions(-) diff --git a/src/API/Message/AddDelegateType.php b/src/API/Message/AddDelegateType.php index 75ffc7e6..59333ead 100644 --- a/src/API/Message/AddDelegateType.php +++ b/src/API/Message/AddDelegateType.php @@ -7,8 +7,6 @@ * * * XSD Type: AddDelegateType - * - * @method AddDelegateType addDelegateUsers(\garethp\ews\API\Type\DelegateUserType $delegateUsers) */ class AddDelegateType extends BaseDelegateType { @@ -23,6 +21,27 @@ class AddDelegateType extends BaseDelegateType */ protected $deliverMeetingRequests = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\DelegateUserType + * @return AddDelegateType + */ + public function addDelegateUsers(\garethp\ews\API\Type\DelegateUserType $value) + { + $value = $this->castValueIfNeeded("delegateUsers", $value); + + if ($this->delegateUsers === null) { + $this->delegateUsers = array(); + } + + if (!is_array($this->delegateUsers)) { + $this->delegateUsers = array($this->delegateUsers); + } + + $this->delegateUsers[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\DelegateUserType[] diff --git a/src/API/Message/ApplyConversationActionType.php b/src/API/Message/ApplyConversationActionType.php index 77213d3b..66866dcb 100644 --- a/src/API/Message/ApplyConversationActionType.php +++ b/src/API/Message/ApplyConversationActionType.php @@ -7,8 +7,6 @@ * * * XSD Type: ApplyConversationActionType - * - * @method ApplyConversationActionType addConversationActions(\garethp\ews\API\Type\ConversationActionType $conversationActions) */ class ApplyConversationActionType extends BaseRequestType { @@ -18,6 +16,27 @@ class ApplyConversationActionType extends BaseRequestType */ protected $conversationActions = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ConversationActionType + * @return ApplyConversationActionType + */ + public function addConversationActions(\garethp\ews\API\Type\ConversationActionType $value) + { + $value = $this->castValueIfNeeded("conversationActions", $value); + + if ($this->conversationActions === null) { + $this->conversationActions = array(); + } + + if (!is_array($this->conversationActions)) { + $this->conversationActions = array($this->conversationActions); + } + + $this->conversationActions[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ConversationActionType[] diff --git a/src/API/Message/ArrayOfResponseMessagesType.php b/src/API/Message/ArrayOfResponseMessagesType.php index 940e56ee..c23d0e5f 100644 --- a/src/API/Message/ArrayOfResponseMessagesType.php +++ b/src/API/Message/ArrayOfResponseMessagesType.php @@ -9,52 +9,6 @@ * * * XSD Type: ArrayOfResponseMessagesType - * - * @method ArrayOfResponseMessagesType addCreateItemResponseMessage(ItemInfoResponseMessageType $createItemResponseMessage) - * @method ArrayOfResponseMessagesType addDeleteItemResponseMessage(ResponseMessageType $deleteItemResponseMessage) - * @method ArrayOfResponseMessagesType addGetItemResponseMessage(ItemInfoResponseMessageType $getItemResponseMessage) - * @method ArrayOfResponseMessagesType addUpdateItemResponseMessage(UpdateItemResponseMessageType $updateItemResponseMessage) - * @method ArrayOfResponseMessagesType addSendItemResponseMessage(ResponseMessageType $sendItemResponseMessage) - * @method ArrayOfResponseMessagesType addDeleteFolderResponseMessage(ResponseMessageType $deleteFolderResponseMessage) - * @method ArrayOfResponseMessagesType addEmptyFolderResponseMessage(ResponseMessageType $emptyFolderResponseMessage) - * @method ArrayOfResponseMessagesType addCreateFolderResponseMessage(FolderInfoResponseMessageType $createFolderResponseMessage) - * @method ArrayOfResponseMessagesType addGetFolderResponseMessage(FolderInfoResponseMessageType $getFolderResponseMessage) - * @method ArrayOfResponseMessagesType addFindFolderResponseMessage(FindFolderResponseMessageType $findFolderResponseMessage) - * @method ArrayOfResponseMessagesType addUpdateFolderResponseMessage(FolderInfoResponseMessageType $updateFolderResponseMessage) - * @method ArrayOfResponseMessagesType addMoveFolderResponseMessage(FolderInfoResponseMessageType $moveFolderResponseMessage) - * @method ArrayOfResponseMessagesType addCopyFolderResponseMessage(FolderInfoResponseMessageType $copyFolderResponseMessage) - * @method ArrayOfResponseMessagesType addCreateAttachmentResponseMessage(AttachmentInfoResponseMessageType $createAttachmentResponseMessage) - * @method ArrayOfResponseMessagesType addDeleteAttachmentResponseMessage(DeleteAttachmentResponseMessageType $deleteAttachmentResponseMessage) - * @method ArrayOfResponseMessagesType addGetAttachmentResponseMessage(AttachmentInfoResponseMessageType $getAttachmentResponseMessage) - * @method ArrayOfResponseMessagesType addUploadItemsResponseMessage(UploadItemsResponseMessageType $uploadItemsResponseMessage) - * @method ArrayOfResponseMessagesType addExportItemsResponseMessage(ExportItemsResponseMessageType $exportItemsResponseMessage) - * @method ArrayOfResponseMessagesType addFindItemResponseMessage(FindItemResponseMessageType $findItemResponseMessage) - * @method ArrayOfResponseMessagesType addMoveItemResponseMessage(ItemInfoResponseMessageType $moveItemResponseMessage) - * @method ArrayOfResponseMessagesType addCopyItemResponseMessage(ItemInfoResponseMessageType $copyItemResponseMessage) - * @method ArrayOfResponseMessagesType addResolveNamesResponseMessage(ResolveNamesResponseMessageType $resolveNamesResponseMessage) - * @method ArrayOfResponseMessagesType addExpandDLResponseMessage(ExpandDLResponseMessageType $expandDLResponseMessage) - * @method ArrayOfResponseMessagesType addGetServerTimeZonesResponseMessage(GetServerTimeZonesResponseMessageType $getServerTimeZonesResponseMessage) - * @method ArrayOfResponseMessagesType addGetEventsResponseMessage(GetEventsResponseMessageType $getEventsResponseMessage) - * @method ArrayOfResponseMessagesType addGetStreamingEventsResponseMessage(GetStreamingEventsResponseMessageType $getStreamingEventsResponseMessage) - * @method ArrayOfResponseMessagesType addSubscribeResponseMessage(SubscribeResponseMessageType $subscribeResponseMessage) - * @method ArrayOfResponseMessagesType addUnsubscribeResponseMessage(ResponseMessageType $unsubscribeResponseMessage) - * @method ArrayOfResponseMessagesType addSendNotificationResponseMessage(SendNotificationResponseMessageType $sendNotificationResponseMessage) - * @method ArrayOfResponseMessagesType addSyncFolderHierarchyResponseMessage(SyncFolderHierarchyResponseMessageType $syncFolderHierarchyResponseMessage) - * @method ArrayOfResponseMessagesType addSyncFolderItemsResponseMessage(SyncFolderItemsResponseMessageType $syncFolderItemsResponseMessage) - * @method ArrayOfResponseMessagesType addCreateManagedFolderResponseMessage(FolderInfoResponseMessageType $createManagedFolderResponseMessage) - * @method ArrayOfResponseMessagesType addConvertIdResponseMessage(ConvertIdResponseMessageType $convertIdResponseMessage) - * @method ArrayOfResponseMessagesType addGetSharingMetadataResponseMessage(GetSharingMetadataResponseMessageType $getSharingMetadataResponseMessage) - * @method ArrayOfResponseMessagesType addRefreshSharingFolderResponseMessage(RefreshSharingFolderResponseMessageType $refreshSharingFolderResponseMessage) - * @method ArrayOfResponseMessagesType addGetSharingFolderResponseMessage(GetSharingFolderResponseMessageType $getSharingFolderResponseMessage) - * @method ArrayOfResponseMessagesType addCreateUserConfigurationResponseMessage(ResponseMessageType $createUserConfigurationResponseMessage) - * @method ArrayOfResponseMessagesType addDeleteUserConfigurationResponseMessage(ResponseMessageType $deleteUserConfigurationResponseMessage) - * @method ArrayOfResponseMessagesType addGetUserConfigurationResponseMessage(GetUserConfigurationResponseMessageType $getUserConfigurationResponseMessage) - * @method ArrayOfResponseMessagesType addUpdateUserConfigurationResponseMessage(ResponseMessageType $updateUserConfigurationResponseMessage) - * @method ArrayOfResponseMessagesType addGetRoomListsResponse(GetRoomListsResponseMessageType $getRoomListsResponse) - * @method ArrayOfResponseMessagesType addGetRoomsResponse(GetRoomsResponseMessageType $getRoomsResponse) - * @method ArrayOfResponseMessagesType addApplyConversationActionResponseMessage(ResponseMessageType $applyConversationActionResponseMessage) - * @method ArrayOfResponseMessagesType addFindMailboxStatisticsByKeywordsResponseMessage(FindMailboxStatisticsByKeywordsResponseMessageType $findMailboxStatisticsByKeywordsResponseMessage) - * @method ArrayOfResponseMessagesType addGetPasswordExpirationDateResponse(GetPasswordExpirationDateResponseMessageType $getPasswordExpirationDateResponse) */ class ArrayOfResponseMessagesType extends Message { @@ -285,6 +239,27 @@ class ArrayOfResponseMessagesType extends Message */ protected $getPasswordExpirationDateResponse = null; + /** + * @autogenerated This method is safe to replace + * @param $value ItemInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCreateItemResponseMessage(ItemInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("createItemResponseMessage", $value); + + if ($this->createItemResponseMessage === null) { + $this->createItemResponseMessage = array(); + } + + if (!is_array($this->createItemResponseMessage)) { + $this->createItemResponseMessage = array($this->createItemResponseMessage); + } + + $this->createItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemInfoResponseMessageType[] @@ -305,6 +280,27 @@ public function setCreateItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addDeleteItemResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("deleteItemResponseMessage", $value); + + if ($this->deleteItemResponseMessage === null) { + $this->deleteItemResponseMessage = array(); + } + + if (!is_array($this->deleteItemResponseMessage)) { + $this->deleteItemResponseMessage = array($this->deleteItemResponseMessage); + } + + $this->deleteItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -325,6 +321,27 @@ public function setDeleteItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ItemInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetItemResponseMessage(ItemInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getItemResponseMessage", $value); + + if ($this->getItemResponseMessage === null) { + $this->getItemResponseMessage = array(); + } + + if (!is_array($this->getItemResponseMessage)) { + $this->getItemResponseMessage = array($this->getItemResponseMessage); + } + + $this->getItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemInfoResponseMessageType[] @@ -345,6 +362,27 @@ public function setGetItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value UpdateItemResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addUpdateItemResponseMessage(UpdateItemResponseMessageType $value) + { + $value = $this->castValueIfNeeded("updateItemResponseMessage", $value); + + if ($this->updateItemResponseMessage === null) { + $this->updateItemResponseMessage = array(); + } + + if (!is_array($this->updateItemResponseMessage)) { + $this->updateItemResponseMessage = array($this->updateItemResponseMessage); + } + + $this->updateItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return UpdateItemResponseMessageType[] @@ -365,6 +403,27 @@ public function setUpdateItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addSendItemResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("sendItemResponseMessage", $value); + + if ($this->sendItemResponseMessage === null) { + $this->sendItemResponseMessage = array(); + } + + if (!is_array($this->sendItemResponseMessage)) { + $this->sendItemResponseMessage = array($this->sendItemResponseMessage); + } + + $this->sendItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -385,6 +444,27 @@ public function setSendItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addDeleteFolderResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("deleteFolderResponseMessage", $value); + + if ($this->deleteFolderResponseMessage === null) { + $this->deleteFolderResponseMessage = array(); + } + + if (!is_array($this->deleteFolderResponseMessage)) { + $this->deleteFolderResponseMessage = array($this->deleteFolderResponseMessage); + } + + $this->deleteFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -405,6 +485,27 @@ public function setDeleteFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addEmptyFolderResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("emptyFolderResponseMessage", $value); + + if ($this->emptyFolderResponseMessage === null) { + $this->emptyFolderResponseMessage = array(); + } + + if (!is_array($this->emptyFolderResponseMessage)) { + $this->emptyFolderResponseMessage = array($this->emptyFolderResponseMessage); + } + + $this->emptyFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -425,6 +526,27 @@ public function setEmptyFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FolderInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCreateFolderResponseMessage(FolderInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("createFolderResponseMessage", $value); + + if ($this->createFolderResponseMessage === null) { + $this->createFolderResponseMessage = array(); + } + + if (!is_array($this->createFolderResponseMessage)) { + $this->createFolderResponseMessage = array($this->createFolderResponseMessage); + } + + $this->createFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderInfoResponseMessageType[] @@ -445,6 +567,27 @@ public function setCreateFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FolderInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetFolderResponseMessage(FolderInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getFolderResponseMessage", $value); + + if ($this->getFolderResponseMessage === null) { + $this->getFolderResponseMessage = array(); + } + + if (!is_array($this->getFolderResponseMessage)) { + $this->getFolderResponseMessage = array($this->getFolderResponseMessage); + } + + $this->getFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderInfoResponseMessageType[] @@ -465,6 +608,27 @@ public function setGetFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FindFolderResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addFindFolderResponseMessage(FindFolderResponseMessageType $value) + { + $value = $this->castValueIfNeeded("findFolderResponseMessage", $value); + + if ($this->findFolderResponseMessage === null) { + $this->findFolderResponseMessage = array(); + } + + if (!is_array($this->findFolderResponseMessage)) { + $this->findFolderResponseMessage = array($this->findFolderResponseMessage); + } + + $this->findFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FindFolderResponseMessageType[] @@ -485,6 +649,27 @@ public function setFindFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FolderInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addUpdateFolderResponseMessage(FolderInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("updateFolderResponseMessage", $value); + + if ($this->updateFolderResponseMessage === null) { + $this->updateFolderResponseMessage = array(); + } + + if (!is_array($this->updateFolderResponseMessage)) { + $this->updateFolderResponseMessage = array($this->updateFolderResponseMessage); + } + + $this->updateFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderInfoResponseMessageType[] @@ -505,6 +690,27 @@ public function setUpdateFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FolderInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addMoveFolderResponseMessage(FolderInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("moveFolderResponseMessage", $value); + + if ($this->moveFolderResponseMessage === null) { + $this->moveFolderResponseMessage = array(); + } + + if (!is_array($this->moveFolderResponseMessage)) { + $this->moveFolderResponseMessage = array($this->moveFolderResponseMessage); + } + + $this->moveFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderInfoResponseMessageType[] @@ -525,6 +731,27 @@ public function setMoveFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FolderInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCopyFolderResponseMessage(FolderInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("copyFolderResponseMessage", $value); + + if ($this->copyFolderResponseMessage === null) { + $this->copyFolderResponseMessage = array(); + } + + if (!is_array($this->copyFolderResponseMessage)) { + $this->copyFolderResponseMessage = array($this->copyFolderResponseMessage); + } + + $this->copyFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderInfoResponseMessageType[] @@ -545,6 +772,27 @@ public function setCopyFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttachmentInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCreateAttachmentResponseMessage(AttachmentInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("createAttachmentResponseMessage", $value); + + if ($this->createAttachmentResponseMessage === null) { + $this->createAttachmentResponseMessage = array(); + } + + if (!is_array($this->createAttachmentResponseMessage)) { + $this->createAttachmentResponseMessage = array($this->createAttachmentResponseMessage); + } + + $this->createAttachmentResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttachmentInfoResponseMessageType[] @@ -565,6 +813,27 @@ public function setCreateAttachmentResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeleteAttachmentResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addDeleteAttachmentResponseMessage(DeleteAttachmentResponseMessageType $value) + { + $value = $this->castValueIfNeeded("deleteAttachmentResponseMessage", $value); + + if ($this->deleteAttachmentResponseMessage === null) { + $this->deleteAttachmentResponseMessage = array(); + } + + if (!is_array($this->deleteAttachmentResponseMessage)) { + $this->deleteAttachmentResponseMessage = array($this->deleteAttachmentResponseMessage); + } + + $this->deleteAttachmentResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeleteAttachmentResponseMessageType[] @@ -585,6 +854,27 @@ public function setDeleteAttachmentResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttachmentInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetAttachmentResponseMessage(AttachmentInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getAttachmentResponseMessage", $value); + + if ($this->getAttachmentResponseMessage === null) { + $this->getAttachmentResponseMessage = array(); + } + + if (!is_array($this->getAttachmentResponseMessage)) { + $this->getAttachmentResponseMessage = array($this->getAttachmentResponseMessage); + } + + $this->getAttachmentResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttachmentInfoResponseMessageType[] @@ -605,6 +895,27 @@ public function setGetAttachmentResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value UploadItemsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addUploadItemsResponseMessage(UploadItemsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("uploadItemsResponseMessage", $value); + + if ($this->uploadItemsResponseMessage === null) { + $this->uploadItemsResponseMessage = array(); + } + + if (!is_array($this->uploadItemsResponseMessage)) { + $this->uploadItemsResponseMessage = array($this->uploadItemsResponseMessage); + } + + $this->uploadItemsResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return UploadItemsResponseMessageType[] @@ -625,6 +936,27 @@ public function setUploadItemsResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExportItemsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addExportItemsResponseMessage(ExportItemsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("exportItemsResponseMessage", $value); + + if ($this->exportItemsResponseMessage === null) { + $this->exportItemsResponseMessage = array(); + } + + if (!is_array($this->exportItemsResponseMessage)) { + $this->exportItemsResponseMessage = array($this->exportItemsResponseMessage); + } + + $this->exportItemsResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExportItemsResponseMessageType[] @@ -645,6 +977,27 @@ public function setExportItemsResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FindItemResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addFindItemResponseMessage(FindItemResponseMessageType $value) + { + $value = $this->castValueIfNeeded("findItemResponseMessage", $value); + + if ($this->findItemResponseMessage === null) { + $this->findItemResponseMessage = array(); + } + + if (!is_array($this->findItemResponseMessage)) { + $this->findItemResponseMessage = array($this->findItemResponseMessage); + } + + $this->findItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FindItemResponseMessageType[] @@ -665,6 +1018,27 @@ public function setFindItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ItemInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addMoveItemResponseMessage(ItemInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("moveItemResponseMessage", $value); + + if ($this->moveItemResponseMessage === null) { + $this->moveItemResponseMessage = array(); + } + + if (!is_array($this->moveItemResponseMessage)) { + $this->moveItemResponseMessage = array($this->moveItemResponseMessage); + } + + $this->moveItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemInfoResponseMessageType[] @@ -685,6 +1059,27 @@ public function setMoveItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ItemInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCopyItemResponseMessage(ItemInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("copyItemResponseMessage", $value); + + if ($this->copyItemResponseMessage === null) { + $this->copyItemResponseMessage = array(); + } + + if (!is_array($this->copyItemResponseMessage)) { + $this->copyItemResponseMessage = array($this->copyItemResponseMessage); + } + + $this->copyItemResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemInfoResponseMessageType[] @@ -705,6 +1100,27 @@ public function setCopyItemResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResolveNamesResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addResolveNamesResponseMessage(ResolveNamesResponseMessageType $value) + { + $value = $this->castValueIfNeeded("resolveNamesResponseMessage", $value); + + if ($this->resolveNamesResponseMessage === null) { + $this->resolveNamesResponseMessage = array(); + } + + if (!is_array($this->resolveNamesResponseMessage)) { + $this->resolveNamesResponseMessage = array($this->resolveNamesResponseMessage); + } + + $this->resolveNamesResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResolveNamesResponseMessageType[] @@ -725,6 +1141,27 @@ public function setResolveNamesResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExpandDLResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addExpandDLResponseMessage(ExpandDLResponseMessageType $value) + { + $value = $this->castValueIfNeeded("expandDLResponseMessage", $value); + + if ($this->expandDLResponseMessage === null) { + $this->expandDLResponseMessage = array(); + } + + if (!is_array($this->expandDLResponseMessage)) { + $this->expandDLResponseMessage = array($this->expandDLResponseMessage); + } + + $this->expandDLResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExpandDLResponseMessageType[] @@ -745,6 +1182,27 @@ public function setExpandDLResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetServerTimeZonesResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetServerTimeZonesResponseMessage(GetServerTimeZonesResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getServerTimeZonesResponseMessage", $value); + + if ($this->getServerTimeZonesResponseMessage === null) { + $this->getServerTimeZonesResponseMessage = array(); + } + + if (!is_array($this->getServerTimeZonesResponseMessage)) { + $this->getServerTimeZonesResponseMessage = array($this->getServerTimeZonesResponseMessage); + } + + $this->getServerTimeZonesResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetServerTimeZonesResponseMessageType[] @@ -765,6 +1223,27 @@ public function setGetServerTimeZonesResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetEventsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetEventsResponseMessage(GetEventsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getEventsResponseMessage", $value); + + if ($this->getEventsResponseMessage === null) { + $this->getEventsResponseMessage = array(); + } + + if (!is_array($this->getEventsResponseMessage)) { + $this->getEventsResponseMessage = array($this->getEventsResponseMessage); + } + + $this->getEventsResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetEventsResponseMessageType[] @@ -785,6 +1264,27 @@ public function setGetEventsResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetStreamingEventsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetStreamingEventsResponseMessage(GetStreamingEventsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getStreamingEventsResponseMessage", $value); + + if ($this->getStreamingEventsResponseMessage === null) { + $this->getStreamingEventsResponseMessage = array(); + } + + if (!is_array($this->getStreamingEventsResponseMessage)) { + $this->getStreamingEventsResponseMessage = array($this->getStreamingEventsResponseMessage); + } + + $this->getStreamingEventsResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetStreamingEventsResponseMessageType[] @@ -805,6 +1305,27 @@ public function setGetStreamingEventsResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SubscribeResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addSubscribeResponseMessage(SubscribeResponseMessageType $value) + { + $value = $this->castValueIfNeeded("subscribeResponseMessage", $value); + + if ($this->subscribeResponseMessage === null) { + $this->subscribeResponseMessage = array(); + } + + if (!is_array($this->subscribeResponseMessage)) { + $this->subscribeResponseMessage = array($this->subscribeResponseMessage); + } + + $this->subscribeResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SubscribeResponseMessageType[] @@ -825,6 +1346,27 @@ public function setSubscribeResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addUnsubscribeResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("unsubscribeResponseMessage", $value); + + if ($this->unsubscribeResponseMessage === null) { + $this->unsubscribeResponseMessage = array(); + } + + if (!is_array($this->unsubscribeResponseMessage)) { + $this->unsubscribeResponseMessage = array($this->unsubscribeResponseMessage); + } + + $this->unsubscribeResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -845,6 +1387,27 @@ public function setUnsubscribeResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SendNotificationResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addSendNotificationResponseMessage(SendNotificationResponseMessageType $value) + { + $value = $this->castValueIfNeeded("sendNotificationResponseMessage", $value); + + if ($this->sendNotificationResponseMessage === null) { + $this->sendNotificationResponseMessage = array(); + } + + if (!is_array($this->sendNotificationResponseMessage)) { + $this->sendNotificationResponseMessage = array($this->sendNotificationResponseMessage); + } + + $this->sendNotificationResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SendNotificationResponseMessageType[] @@ -865,6 +1428,27 @@ public function setSendNotificationResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderHierarchyResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addSyncFolderHierarchyResponseMessage(SyncFolderHierarchyResponseMessageType $value) + { + $value = $this->castValueIfNeeded("syncFolderHierarchyResponseMessage", $value); + + if ($this->syncFolderHierarchyResponseMessage === null) { + $this->syncFolderHierarchyResponseMessage = array(); + } + + if (!is_array($this->syncFolderHierarchyResponseMessage)) { + $this->syncFolderHierarchyResponseMessage = array($this->syncFolderHierarchyResponseMessage); + } + + $this->syncFolderHierarchyResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderHierarchyResponseMessageType[] @@ -885,6 +1469,27 @@ public function setSyncFolderHierarchyResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderItemsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addSyncFolderItemsResponseMessage(SyncFolderItemsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("syncFolderItemsResponseMessage", $value); + + if ($this->syncFolderItemsResponseMessage === null) { + $this->syncFolderItemsResponseMessage = array(); + } + + if (!is_array($this->syncFolderItemsResponseMessage)) { + $this->syncFolderItemsResponseMessage = array($this->syncFolderItemsResponseMessage); + } + + $this->syncFolderItemsResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderItemsResponseMessageType[] @@ -905,6 +1510,27 @@ public function setSyncFolderItemsResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FolderInfoResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCreateManagedFolderResponseMessage(FolderInfoResponseMessageType $value) + { + $value = $this->castValueIfNeeded("createManagedFolderResponseMessage", $value); + + if ($this->createManagedFolderResponseMessage === null) { + $this->createManagedFolderResponseMessage = array(); + } + + if (!is_array($this->createManagedFolderResponseMessage)) { + $this->createManagedFolderResponseMessage = array($this->createManagedFolderResponseMessage); + } + + $this->createManagedFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderInfoResponseMessageType[] @@ -925,6 +1551,27 @@ public function setCreateManagedFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ConvertIdResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addConvertIdResponseMessage(ConvertIdResponseMessageType $value) + { + $value = $this->castValueIfNeeded("convertIdResponseMessage", $value); + + if ($this->convertIdResponseMessage === null) { + $this->convertIdResponseMessage = array(); + } + + if (!is_array($this->convertIdResponseMessage)) { + $this->convertIdResponseMessage = array($this->convertIdResponseMessage); + } + + $this->convertIdResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ConvertIdResponseMessageType[] @@ -945,6 +1592,27 @@ public function setConvertIdResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetSharingMetadataResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetSharingMetadataResponseMessage(GetSharingMetadataResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getSharingMetadataResponseMessage", $value); + + if ($this->getSharingMetadataResponseMessage === null) { + $this->getSharingMetadataResponseMessage = array(); + } + + if (!is_array($this->getSharingMetadataResponseMessage)) { + $this->getSharingMetadataResponseMessage = array($this->getSharingMetadataResponseMessage); + } + + $this->getSharingMetadataResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetSharingMetadataResponseMessageType[] @@ -965,6 +1633,27 @@ public function setGetSharingMetadataResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RefreshSharingFolderResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addRefreshSharingFolderResponseMessage(RefreshSharingFolderResponseMessageType $value) + { + $value = $this->castValueIfNeeded("refreshSharingFolderResponseMessage", $value); + + if ($this->refreshSharingFolderResponseMessage === null) { + $this->refreshSharingFolderResponseMessage = array(); + } + + if (!is_array($this->refreshSharingFolderResponseMessage)) { + $this->refreshSharingFolderResponseMessage = array($this->refreshSharingFolderResponseMessage); + } + + $this->refreshSharingFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RefreshSharingFolderResponseMessageType[] @@ -985,6 +1674,27 @@ public function setRefreshSharingFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetSharingFolderResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetSharingFolderResponseMessage(GetSharingFolderResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getSharingFolderResponseMessage", $value); + + if ($this->getSharingFolderResponseMessage === null) { + $this->getSharingFolderResponseMessage = array(); + } + + if (!is_array($this->getSharingFolderResponseMessage)) { + $this->getSharingFolderResponseMessage = array($this->getSharingFolderResponseMessage); + } + + $this->getSharingFolderResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetSharingFolderResponseMessageType[] @@ -1005,6 +1715,27 @@ public function setGetSharingFolderResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addCreateUserConfigurationResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("createUserConfigurationResponseMessage", $value); + + if ($this->createUserConfigurationResponseMessage === null) { + $this->createUserConfigurationResponseMessage = array(); + } + + if (!is_array($this->createUserConfigurationResponseMessage)) { + $this->createUserConfigurationResponseMessage = array($this->createUserConfigurationResponseMessage); + } + + $this->createUserConfigurationResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -1025,6 +1756,27 @@ public function setCreateUserConfigurationResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addDeleteUserConfigurationResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("deleteUserConfigurationResponseMessage", $value); + + if ($this->deleteUserConfigurationResponseMessage === null) { + $this->deleteUserConfigurationResponseMessage = array(); + } + + if (!is_array($this->deleteUserConfigurationResponseMessage)) { + $this->deleteUserConfigurationResponseMessage = array($this->deleteUserConfigurationResponseMessage); + } + + $this->deleteUserConfigurationResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -1045,6 +1797,27 @@ public function setDeleteUserConfigurationResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetUserConfigurationResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetUserConfigurationResponseMessage(GetUserConfigurationResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getUserConfigurationResponseMessage", $value); + + if ($this->getUserConfigurationResponseMessage === null) { + $this->getUserConfigurationResponseMessage = array(); + } + + if (!is_array($this->getUserConfigurationResponseMessage)) { + $this->getUserConfigurationResponseMessage = array($this->getUserConfigurationResponseMessage); + } + + $this->getUserConfigurationResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetUserConfigurationResponseMessageType[] @@ -1065,6 +1838,27 @@ public function setGetUserConfigurationResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addUpdateUserConfigurationResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("updateUserConfigurationResponseMessage", $value); + + if ($this->updateUserConfigurationResponseMessage === null) { + $this->updateUserConfigurationResponseMessage = array(); + } + + if (!is_array($this->updateUserConfigurationResponseMessage)) { + $this->updateUserConfigurationResponseMessage = array($this->updateUserConfigurationResponseMessage); + } + + $this->updateUserConfigurationResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -1085,6 +1879,27 @@ public function setUpdateUserConfigurationResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetRoomListsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetRoomListsResponse(GetRoomListsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getRoomListsResponse", $value); + + if ($this->getRoomListsResponse === null) { + $this->getRoomListsResponse = array(); + } + + if (!is_array($this->getRoomListsResponse)) { + $this->getRoomListsResponse = array($this->getRoomListsResponse); + } + + $this->getRoomListsResponse[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetRoomListsResponseMessageType[] @@ -1105,6 +1920,27 @@ public function setGetRoomListsResponse(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetRoomsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetRoomsResponse(GetRoomsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getRoomsResponse", $value); + + if ($this->getRoomsResponse === null) { + $this->getRoomsResponse = array(); + } + + if (!is_array($this->getRoomsResponse)) { + $this->getRoomsResponse = array($this->getRoomsResponse); + } + + $this->getRoomsResponse[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetRoomsResponseMessageType[] @@ -1125,6 +1961,27 @@ public function setGetRoomsResponse(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addApplyConversationActionResponseMessage(ResponseMessageType $value) + { + $value = $this->castValueIfNeeded("applyConversationActionResponseMessage", $value); + + if ($this->applyConversationActionResponseMessage === null) { + $this->applyConversationActionResponseMessage = array(); + } + + if (!is_array($this->applyConversationActionResponseMessage)) { + $this->applyConversationActionResponseMessage = array($this->applyConversationActionResponseMessage); + } + + $this->applyConversationActionResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResponseMessageType[] @@ -1145,6 +2002,27 @@ public function setApplyConversationActionResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FindMailboxStatisticsByKeywordsResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addFindMailboxStatisticsByKeywordsResponseMessage(FindMailboxStatisticsByKeywordsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("findMailboxStatisticsByKeywordsResponseMessage", $value); + + if ($this->findMailboxStatisticsByKeywordsResponseMessage === null) { + $this->findMailboxStatisticsByKeywordsResponseMessage = array(); + } + + if (!is_array($this->findMailboxStatisticsByKeywordsResponseMessage)) { + $this->findMailboxStatisticsByKeywordsResponseMessage = array($this->findMailboxStatisticsByKeywordsResponseMessage); + } + + $this->findMailboxStatisticsByKeywordsResponseMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FindMailboxStatisticsByKeywordsResponseMessageType[] @@ -1165,6 +2043,27 @@ public function setFindMailboxStatisticsByKeywordsResponseMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GetPasswordExpirationDateResponseMessageType + * @return ArrayOfResponseMessagesType + */ + public function addGetPasswordExpirationDateResponse(GetPasswordExpirationDateResponseMessageType $value) + { + $value = $this->castValueIfNeeded("getPasswordExpirationDateResponse", $value); + + if ($this->getPasswordExpirationDateResponse === null) { + $this->getPasswordExpirationDateResponse = array(); + } + + if (!is_array($this->getPasswordExpirationDateResponse)) { + $this->getPasswordExpirationDateResponse = array($this->getPasswordExpirationDateResponse); + } + + $this->getPasswordExpirationDateResponse[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GetPasswordExpirationDateResponseMessageType[] diff --git a/src/API/Message/BaseDelegateResponseMessageType.php b/src/API/Message/BaseDelegateResponseMessageType.php index ac5e1d31..14f43a1b 100644 --- a/src/API/Message/BaseDelegateResponseMessageType.php +++ b/src/API/Message/BaseDelegateResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: BaseDelegateResponseMessageType - * - * @method BaseDelegateResponseMessageType addResponseMessages(DelegateUserResponseMessageType $responseMessages) */ class BaseDelegateResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class BaseDelegateResponseMessageType extends ResponseMessageType */ protected $responseMessages = null; + /** + * @autogenerated This method is safe to replace + * @param $value DelegateUserResponseMessageType + * @return BaseDelegateResponseMessageType + */ + public function addResponseMessages(DelegateUserResponseMessageType $value) + { + $value = $this->castValueIfNeeded("responseMessages", $value); + + if ($this->responseMessages === null) { + $this->responseMessages = array(); + } + + if (!is_array($this->responseMessages)) { + $this->responseMessages = array($this->responseMessages); + } + + $this->responseMessages[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DelegateUserResponseMessageType[] diff --git a/src/API/Message/CreateManagedFolderRequestType.php b/src/API/Message/CreateManagedFolderRequestType.php index ded62046..19425cd5 100644 --- a/src/API/Message/CreateManagedFolderRequestType.php +++ b/src/API/Message/CreateManagedFolderRequestType.php @@ -7,8 +7,6 @@ * * * XSD Type: CreateManagedFolderRequestType - * - * @method CreateManagedFolderRequestType addFolderNames(string $folderNames) */ class CreateManagedFolderRequestType extends BaseRequestType { @@ -23,6 +21,27 @@ class CreateManagedFolderRequestType extends BaseRequestType */ protected $mailbox = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return CreateManagedFolderRequestType + */ + public function addFolderNames($value) + { + $value = $this->castValueIfNeeded("folderNames", $value); + + if ($this->folderNames === null) { + $this->folderNames = array(); + } + + if (!is_array($this->folderNames)) { + $this->folderNames = array($this->folderNames); + } + + $this->folderNames[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/DeleteAttachmentType.php b/src/API/Message/DeleteAttachmentType.php index d30b31c7..a0fa8d05 100644 --- a/src/API/Message/DeleteAttachmentType.php +++ b/src/API/Message/DeleteAttachmentType.php @@ -7,8 +7,6 @@ * * * XSD Type: DeleteAttachmentType - * - * @method DeleteAttachmentType addAttachmentIds(\garethp\ews\API\Type\RequestAttachmentIdType $attachmentIds) */ class DeleteAttachmentType extends BaseRequestType { @@ -18,6 +16,27 @@ class DeleteAttachmentType extends BaseRequestType */ protected $attachmentIds = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\RequestAttachmentIdType + * @return DeleteAttachmentType + */ + public function addAttachmentIds(\garethp\ews\API\Type\RequestAttachmentIdType $value) + { + $value = $this->castValueIfNeeded("attachmentIds", $value); + + if ($this->attachmentIds === null) { + $this->attachmentIds = array(); + } + + if (!is_array($this->attachmentIds)) { + $this->attachmentIds = array($this->attachmentIds); + } + + $this->attachmentIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\RequestAttachmentIdType[] diff --git a/src/API/Message/ExportItemsType.php b/src/API/Message/ExportItemsType.php index f77364a2..998cb779 100644 --- a/src/API/Message/ExportItemsType.php +++ b/src/API/Message/ExportItemsType.php @@ -7,8 +7,6 @@ * * * XSD Type: ExportItemsType - * - * @method ExportItemsType addItemIds(\garethp\ews\API\Type\ItemIdType $itemIds) */ class ExportItemsType extends BaseRequestType { @@ -18,6 +16,27 @@ class ExportItemsType extends BaseRequestType */ protected $itemIds = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ItemIdType + * @return ExportItemsType + */ + public function addItemIds(\garethp\ews\API\Type\ItemIdType $value) + { + $value = $this->castValueIfNeeded("itemIds", $value); + + if ($this->itemIds === null) { + $this->itemIds = array(); + } + + if (!is_array($this->itemIds)) { + $this->itemIds = array($this->itemIds); + } + + $this->itemIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ItemIdType[] diff --git a/src/API/Message/FindConversationResponseMessageType.php b/src/API/Message/FindConversationResponseMessageType.php index 3a8f8cc4..8197f5e5 100644 --- a/src/API/Message/FindConversationResponseMessageType.php +++ b/src/API/Message/FindConversationResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: FindConversationResponseMessageType - * - * @method FindConversationResponseMessageType addConversations(\garethp\ews\API\Type\ConversationType $conversations) */ class FindConversationResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class FindConversationResponseMessageType extends ResponseMessageType */ protected $conversations = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ConversationType + * @return FindConversationResponseMessageType + */ + public function addConversations(\garethp\ews\API\Type\ConversationType $value) + { + $value = $this->castValueIfNeeded("conversations", $value); + + if ($this->conversations === null) { + $this->conversations = array(); + } + + if (!is_array($this->conversations)) { + $this->conversations = array($this->conversations); + } + + $this->conversations[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ConversationType[] diff --git a/src/API/Message/FindConversationType.php b/src/API/Message/FindConversationType.php index 5ec07374..63fc6baf 100644 --- a/src/API/Message/FindConversationType.php +++ b/src/API/Message/FindConversationType.php @@ -7,8 +7,6 @@ * * * XSD Type: FindConversationType - * - * @method FindConversationType addSortOrder(\garethp\ews\API\Type\FieldOrderType $sortOrder) */ class FindConversationType extends BaseRequestType { @@ -48,6 +46,27 @@ public function setIndexedPageItemView(\garethp\ews\API\Type\IndexedPageViewType return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\FieldOrderType + * @return FindConversationType + */ + public function addSortOrder(\garethp\ews\API\Type\FieldOrderType $value) + { + $value = $this->castValueIfNeeded("sortOrder", $value); + + if ($this->sortOrder === null) { + $this->sortOrder = array(); + } + + if (!is_array($this->sortOrder)) { + $this->sortOrder = array($this->sortOrder); + } + + $this->sortOrder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\FieldOrderType[] diff --git a/src/API/Message/FindItemType.php b/src/API/Message/FindItemType.php index 96ab740f..9be544d2 100644 --- a/src/API/Message/FindItemType.php +++ b/src/API/Message/FindItemType.php @@ -9,8 +9,6 @@ * * * XSD Type: FindItemType - * - * @method FindItemType addSortOrder(\garethp\ews\API\Type\FieldOrderType $sortOrder) */ class FindItemType extends BaseRequestType { @@ -261,6 +259,27 @@ public function setRestriction(\garethp\ews\API\Type\RestrictionType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\FieldOrderType + * @return FindItemType + */ + public function addSortOrder(\garethp\ews\API\Type\FieldOrderType $value) + { + $value = $this->castValueIfNeeded("sortOrder", $value); + + if ($this->sortOrder === null) { + $this->sortOrder = array(); + } + + if (!is_array($this->sortOrder)) { + $this->sortOrder = array($this->sortOrder); + } + + $this->sortOrder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\FieldOrderType[] diff --git a/src/API/Message/FindMailboxStatisticsByKeywordsType.php b/src/API/Message/FindMailboxStatisticsByKeywordsType.php index 71f4cb3b..19e8f92a 100644 --- a/src/API/Message/FindMailboxStatisticsByKeywordsType.php +++ b/src/API/Message/FindMailboxStatisticsByKeywordsType.php @@ -7,12 +7,6 @@ * * Request type for the FindMailboxStatisticsByKeywords web method. * XSD Type: FindMailboxStatisticsByKeywordsType - * - * @method FindMailboxStatisticsByKeywordsType addMailboxes(\garethp\ews\API\Type\UserMailboxType $mailboxes) - * @method FindMailboxStatisticsByKeywordsType addKeywords(string $keywords) - * @method FindMailboxStatisticsByKeywordsType addSenders(string $senders) - * @method FindMailboxStatisticsByKeywordsType addRecipients(string $recipients) - * @method FindMailboxStatisticsByKeywordsType addMessageTypes(string $messageTypes) */ class FindMailboxStatisticsByKeywordsType extends BaseRequestType { @@ -77,6 +71,27 @@ class FindMailboxStatisticsByKeywordsType extends BaseRequestType */ protected $includeUnsearchableItems = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\UserMailboxType + * @return FindMailboxStatisticsByKeywordsType + */ + public function addMailboxes(\garethp\ews\API\Type\UserMailboxType $value) + { + $value = $this->castValueIfNeeded("mailboxes", $value); + + if ($this->mailboxes === null) { + $this->mailboxes = array(); + } + + if (!is_array($this->mailboxes)) { + $this->mailboxes = array($this->mailboxes); + } + + $this->mailboxes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\UserMailboxType[] @@ -97,6 +112,27 @@ public function setMailboxes(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FindMailboxStatisticsByKeywordsType + */ + public function addKeywords($value) + { + $value = $this->castValueIfNeeded("keywords", $value); + + if ($this->keywords === null) { + $this->keywords = array(); + } + + if (!is_array($this->keywords)) { + $this->keywords = array($this->keywords); + } + + $this->keywords[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -137,6 +173,27 @@ public function setLanguage($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FindMailboxStatisticsByKeywordsType + */ + public function addSenders($value) + { + $value = $this->castValueIfNeeded("senders", $value); + + if ($this->senders === null) { + $this->senders = array(); + } + + if (!is_array($this->senders)) { + $this->senders = array($this->senders); + } + + $this->senders[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -157,6 +214,27 @@ public function setSenders(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FindMailboxStatisticsByKeywordsType + */ + public function addRecipients($value) + { + $value = $this->castValueIfNeeded("recipients", $value); + + if ($this->recipients === null) { + $this->recipients = array(); + } + + if (!is_array($this->recipients)) { + $this->recipients = array($this->recipients); + } + + $this->recipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -217,6 +295,27 @@ public function setToDate(\DateTime|string $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FindMailboxStatisticsByKeywordsType + */ + public function addMessageTypes($value) + { + $value = $this->castValueIfNeeded("messageTypes", $value); + + if ($this->messageTypes === null) { + $this->messageTypes = array(); + } + + if (!is_array($this->messageTypes)) { + $this->messageTypes = array($this->messageTypes); + } + + $this->messageTypes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/FindMessageTrackingReportRequestType.php b/src/API/Message/FindMessageTrackingReportRequestType.php index f0f4d4b3..161f9a91 100644 --- a/src/API/Message/FindMessageTrackingReportRequestType.php +++ b/src/API/Message/FindMessageTrackingReportRequestType.php @@ -7,8 +7,6 @@ * * * XSD Type: FindMessageTrackingReportRequestType - * - * @method FindMessageTrackingReportRequestType addProperties(\garethp\ews\API\Type\TrackingPropertyType $properties) */ class FindMessageTrackingReportRequestType extends BaseRequestType { @@ -323,6 +321,27 @@ public function setServerHint($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\TrackingPropertyType + * @return FindMessageTrackingReportRequestType + */ + public function addProperties(\garethp\ews\API\Type\TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\TrackingPropertyType[] diff --git a/src/API/Message/FindMessageTrackingReportResponseMessageType.php b/src/API/Message/FindMessageTrackingReportResponseMessageType.php index 7dc74fed..4ce01d9d 100644 --- a/src/API/Message/FindMessageTrackingReportResponseMessageType.php +++ b/src/API/Message/FindMessageTrackingReportResponseMessageType.php @@ -7,11 +7,6 @@ * * * XSD Type: FindMessageTrackingReportResponseMessageType - * - * @method FindMessageTrackingReportResponseMessageType addDiagnostics(string $diagnostics) - * @method FindMessageTrackingReportResponseMessageType addMessageTrackingSearchResults(\garethp\ews\API\Type\FindMessageTrackingSearchResultType $messageTrackingSearchResults) - * @method FindMessageTrackingReportResponseMessageType addErrors(\garethp\ews\API\Type\ArrayOfTrackingPropertiesType $errors) - * @method FindMessageTrackingReportResponseMessageType addProperties(\garethp\ews\API\Type\TrackingPropertyType $properties) */ class FindMessageTrackingReportResponseMessageType extends ResponseMessageType { @@ -41,6 +36,27 @@ class FindMessageTrackingReportResponseMessageType extends ResponseMessageType */ protected $properties = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FindMessageTrackingReportResponseMessageType + */ + public function addDiagnostics($value) + { + $value = $this->castValueIfNeeded("diagnostics", $value); + + if ($this->diagnostics === null) { + $this->diagnostics = array(); + } + + if (!is_array($this->diagnostics)) { + $this->diagnostics = array($this->diagnostics); + } + + $this->diagnostics[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -61,6 +77,27 @@ public function setDiagnostics(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\FindMessageTrackingSearchResultType + * @return FindMessageTrackingReportResponseMessageType + */ + public function addMessageTrackingSearchResults(\garethp\ews\API\Type\FindMessageTrackingSearchResultType $value) + { + $value = $this->castValueIfNeeded("messageTrackingSearchResults", $value); + + if ($this->messageTrackingSearchResults === null) { + $this->messageTrackingSearchResults = array(); + } + + if (!is_array($this->messageTrackingSearchResults)) { + $this->messageTrackingSearchResults = array($this->messageTrackingSearchResults); + } + + $this->messageTrackingSearchResults[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\FindMessageTrackingSearchResultType[] @@ -101,6 +138,27 @@ public function setExecutedSearchScope($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ArrayOfTrackingPropertiesType + * @return FindMessageTrackingReportResponseMessageType + */ + public function addErrors(\garethp\ews\API\Type\ArrayOfTrackingPropertiesType $value) + { + $value = $this->castValueIfNeeded("errors", $value); + + if ($this->errors === null) { + $this->errors = array(); + } + + if (!is_array($this->errors)) { + $this->errors = array($this->errors); + } + + $this->errors[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ArrayOfTrackingPropertiesType[] @@ -121,6 +179,27 @@ public function setErrors(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\TrackingPropertyType + * @return FindMessageTrackingReportResponseMessageType + */ + public function addProperties(\garethp\ews\API\Type\TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\TrackingPropertyType[] diff --git a/src/API/Message/GetAttachmentType.php b/src/API/Message/GetAttachmentType.php index 231a2b98..4789c82e 100644 --- a/src/API/Message/GetAttachmentType.php +++ b/src/API/Message/GetAttachmentType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetAttachmentType - * - * @method GetAttachmentType addAttachmentIds(\garethp\ews\API\Type\RequestAttachmentIdType $attachmentIds) */ class GetAttachmentType extends BaseRequestType { @@ -43,6 +41,27 @@ public function setAttachmentShape(\garethp\ews\API\Type\AttachmentResponseShape return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\RequestAttachmentIdType + * @return GetAttachmentType + */ + public function addAttachmentIds(\garethp\ews\API\Type\RequestAttachmentIdType $value) + { + $value = $this->castValueIfNeeded("attachmentIds", $value); + + if ($this->attachmentIds === null) { + $this->attachmentIds = array(); + } + + if (!is_array($this->attachmentIds)) { + $this->attachmentIds = array($this->attachmentIds); + } + + $this->attachmentIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\RequestAttachmentIdType[] diff --git a/src/API/Message/GetDelegateType.php b/src/API/Message/GetDelegateType.php index 08efb1b9..c5dd4b85 100644 --- a/src/API/Message/GetDelegateType.php +++ b/src/API/Message/GetDelegateType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetDelegateType - * - * @method GetDelegateType addUserIds(\garethp\ews\API\Type\UserIdType $userIds) */ class GetDelegateType extends BaseDelegateType { @@ -52,6 +50,27 @@ public function setIncludePermissions($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\UserIdType + * @return GetDelegateType + */ + public function addUserIds(\garethp\ews\API\Type\UserIdType $value) + { + $value = $this->castValueIfNeeded("userIds", $value); + + if ($this->userIds === null) { + $this->userIds = array(); + } + + if (!is_array($this->userIds)) { + $this->userIds = array($this->userIds); + } + + $this->userIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\UserIdType[] diff --git a/src/API/Message/GetInboxRulesResponseType.php b/src/API/Message/GetInboxRulesResponseType.php index ae8ee288..1913673e 100644 --- a/src/API/Message/GetInboxRulesResponseType.php +++ b/src/API/Message/GetInboxRulesResponseType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetInboxRulesResponseType - * - * @method GetInboxRulesResponseType addInboxRules(\garethp\ews\API\Type\RuleType $inboxRules) */ class GetInboxRulesResponseType extends ResponseMessageType { @@ -52,6 +50,27 @@ public function setOutlookRuleBlobExists($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\RuleType + * @return GetInboxRulesResponseType + */ + public function addInboxRules(\garethp\ews\API\Type\RuleType $value) + { + $value = $this->castValueIfNeeded("inboxRules", $value); + + if ($this->inboxRules === null) { + $this->inboxRules = array(); + } + + if (!is_array($this->inboxRules)) { + $this->inboxRules = array($this->inboxRules); + } + + $this->inboxRules[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\RuleType[] diff --git a/src/API/Message/GetMailTipsResponseMessageType.php b/src/API/Message/GetMailTipsResponseMessageType.php index f83a2746..cfbf7408 100644 --- a/src/API/Message/GetMailTipsResponseMessageType.php +++ b/src/API/Message/GetMailTipsResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetMailTipsResponseMessageType - * - * @method GetMailTipsResponseMessageType addResponseMessages(MailTipsResponseMessageType $responseMessages) */ class GetMailTipsResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class GetMailTipsResponseMessageType extends ResponseMessageType */ protected $responseMessages = null; + /** + * @autogenerated This method is safe to replace + * @param $value MailTipsResponseMessageType + * @return GetMailTipsResponseMessageType + */ + public function addResponseMessages(MailTipsResponseMessageType $value) + { + $value = $this->castValueIfNeeded("responseMessages", $value); + + if ($this->responseMessages === null) { + $this->responseMessages = array(); + } + + if (!is_array($this->responseMessages)) { + $this->responseMessages = array($this->responseMessages); + } + + $this->responseMessages[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MailTipsResponseMessageType[] diff --git a/src/API/Message/GetMailTipsType.php b/src/API/Message/GetMailTipsType.php index 9ff96b4e..71a84513 100644 --- a/src/API/Message/GetMailTipsType.php +++ b/src/API/Message/GetMailTipsType.php @@ -7,9 +7,6 @@ * * * XSD Type: GetMailTipsType - * - * @method GetMailTipsType addRecipients(\garethp\ews\API\Type\EmailAddressType $recipients) - * @method GetMailTipsType addMailTipsRequested(string $mailTipsRequested) */ class GetMailTipsType extends BaseRequestType { @@ -49,6 +46,27 @@ public function setSendingAs(\garethp\ews\API\Type\EmailAddressType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\EmailAddressType + * @return GetMailTipsType + */ + public function addRecipients(\garethp\ews\API\Type\EmailAddressType $value) + { + $value = $this->castValueIfNeeded("recipients", $value); + + if ($this->recipients === null) { + $this->recipients = array(); + } + + if (!is_array($this->recipients)) { + $this->recipients = array($this->recipients); + } + + $this->recipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\EmailAddressType[] @@ -69,6 +87,27 @@ public function setRecipients(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetMailTipsType + */ + public function addMailTipsRequested($value) + { + $value = $this->castValueIfNeeded("mailTipsRequested", $value); + + if ($this->mailTipsRequested === null) { + $this->mailTipsRequested = array(); + } + + if (!is_array($this->mailTipsRequested)) { + $this->mailTipsRequested = array($this->mailTipsRequested); + } + + $this->mailTipsRequested[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/GetMessageTrackingReportRequestType.php b/src/API/Message/GetMessageTrackingReportRequestType.php index 2cb97c2b..1cacbf4d 100644 --- a/src/API/Message/GetMessageTrackingReportRequestType.php +++ b/src/API/Message/GetMessageTrackingReportRequestType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetMessageTrackingReportRequestType - * - * @method GetMessageTrackingReportRequestType addProperties(\garethp\ews\API\Type\TrackingPropertyType $properties) */ class GetMessageTrackingReportRequestType extends BaseRequestType { @@ -177,6 +175,27 @@ public function setDiagnosticsLevel($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\TrackingPropertyType + * @return GetMessageTrackingReportRequestType + */ + public function addProperties(\garethp\ews\API\Type\TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\TrackingPropertyType[] diff --git a/src/API/Message/GetMessageTrackingReportResponseMessageType.php b/src/API/Message/GetMessageTrackingReportResponseMessageType.php index c97b5bbe..f1d4efa0 100644 --- a/src/API/Message/GetMessageTrackingReportResponseMessageType.php +++ b/src/API/Message/GetMessageTrackingReportResponseMessageType.php @@ -7,10 +7,6 @@ * * * XSD Type: GetMessageTrackingReportResponseMessageType - * - * @method GetMessageTrackingReportResponseMessageType addDiagnostics(string $diagnostics) - * @method GetMessageTrackingReportResponseMessageType addErrors(\garethp\ews\API\Type\ArrayOfTrackingPropertiesType $errors) - * @method GetMessageTrackingReportResponseMessageType addProperties(\garethp\ews\API\Type\TrackingPropertyType $properties) */ class GetMessageTrackingReportResponseMessageType extends ResponseMessageType { @@ -55,6 +51,27 @@ public function setMessageTrackingReport(\garethp\ews\API\Type\MessageTrackingRe return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetMessageTrackingReportResponseMessageType + */ + public function addDiagnostics($value) + { + $value = $this->castValueIfNeeded("diagnostics", $value); + + if ($this->diagnostics === null) { + $this->diagnostics = array(); + } + + if (!is_array($this->diagnostics)) { + $this->diagnostics = array($this->diagnostics); + } + + $this->diagnostics[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -75,6 +92,27 @@ public function setDiagnostics(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ArrayOfTrackingPropertiesType + * @return GetMessageTrackingReportResponseMessageType + */ + public function addErrors(\garethp\ews\API\Type\ArrayOfTrackingPropertiesType $value) + { + $value = $this->castValueIfNeeded("errors", $value); + + if ($this->errors === null) { + $this->errors = array(); + } + + if (!is_array($this->errors)) { + $this->errors = array($this->errors); + } + + $this->errors[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ArrayOfTrackingPropertiesType[] @@ -95,6 +133,27 @@ public function setErrors(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\TrackingPropertyType + * @return GetMessageTrackingReportResponseMessageType + */ + public function addProperties(\garethp\ews\API\Type\TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\TrackingPropertyType[] diff --git a/src/API/Message/GetRoomListsResponseMessageType.php b/src/API/Message/GetRoomListsResponseMessageType.php index 9a11ff1b..661538d8 100644 --- a/src/API/Message/GetRoomListsResponseMessageType.php +++ b/src/API/Message/GetRoomListsResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetRoomListsResponseMessageType - * - * @method GetRoomListsResponseMessageType addRoomLists(\garethp\ews\API\Type\EmailAddressType $roomLists) */ class GetRoomListsResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class GetRoomListsResponseMessageType extends ResponseMessageType */ protected $roomLists = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\EmailAddressType + * @return GetRoomListsResponseMessageType + */ + public function addRoomLists(\garethp\ews\API\Type\EmailAddressType $value) + { + $value = $this->castValueIfNeeded("roomLists", $value); + + if ($this->roomLists === null) { + $this->roomLists = array(); + } + + if (!is_array($this->roomLists)) { + $this->roomLists = array($this->roomLists); + } + + $this->roomLists[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\EmailAddressType[] diff --git a/src/API/Message/GetRoomsResponseMessageType.php b/src/API/Message/GetRoomsResponseMessageType.php index 23507f85..553fb69a 100644 --- a/src/API/Message/GetRoomsResponseMessageType.php +++ b/src/API/Message/GetRoomsResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetRoomsResponseMessageType - * - * @method GetRoomsResponseMessageType addRooms(\garethp\ews\API\Type\RoomType $rooms) */ class GetRoomsResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class GetRoomsResponseMessageType extends ResponseMessageType */ protected $rooms = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\RoomType + * @return GetRoomsResponseMessageType + */ + public function addRooms(\garethp\ews\API\Type\RoomType $value) + { + $value = $this->castValueIfNeeded("rooms", $value); + + if ($this->rooms === null) { + $this->rooms = array(); + } + + if (!is_array($this->rooms)) { + $this->rooms = array($this->rooms); + } + + $this->rooms[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\RoomType[] diff --git a/src/API/Message/GetServerTimeZonesResponseMessageType.php b/src/API/Message/GetServerTimeZonesResponseMessageType.php index 0ed6db05..3ebbd7ff 100644 --- a/src/API/Message/GetServerTimeZonesResponseMessageType.php +++ b/src/API/Message/GetServerTimeZonesResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetServerTimeZonesResponseMessageType - * - * @method GetServerTimeZonesResponseMessageType addTimeZoneDefinitions(\garethp\ews\API\Type\TimeZoneDefinitionType $timeZoneDefinitions) */ class GetServerTimeZonesResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class GetServerTimeZonesResponseMessageType extends ResponseMessageType */ protected $timeZoneDefinitions = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\TimeZoneDefinitionType + * @return GetServerTimeZonesResponseMessageType + */ + public function addTimeZoneDefinitions(\garethp\ews\API\Type\TimeZoneDefinitionType $value) + { + $value = $this->castValueIfNeeded("timeZoneDefinitions", $value); + + if ($this->timeZoneDefinitions === null) { + $this->timeZoneDefinitions = array(); + } + + if (!is_array($this->timeZoneDefinitions)) { + $this->timeZoneDefinitions = array($this->timeZoneDefinitions); + } + + $this->timeZoneDefinitions[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\TimeZoneDefinitionType[] diff --git a/src/API/Message/GetServerTimeZonesType.php b/src/API/Message/GetServerTimeZonesType.php index b6444488..6c03d18a 100644 --- a/src/API/Message/GetServerTimeZonesType.php +++ b/src/API/Message/GetServerTimeZonesType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetServerTimeZonesType - * - * @method GetServerTimeZonesType addIds(string $ids) */ class GetServerTimeZonesType extends BaseRequestType { @@ -52,6 +50,27 @@ public function setReturnFullTimeZoneData($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetServerTimeZonesType + */ + public function addIds($value) + { + $value = $this->castValueIfNeeded("ids", $value); + + if ($this->ids === null) { + $this->ids = array(); + } + + if (!is_array($this->ids)) { + $this->ids = array($this->ids); + } + + $this->ids[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/GetServiceConfigurationResponseMessageType.php b/src/API/Message/GetServiceConfigurationResponseMessageType.php index b8d43542..ddf8b508 100644 --- a/src/API/Message/GetServiceConfigurationResponseMessageType.php +++ b/src/API/Message/GetServiceConfigurationResponseMessageType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetServiceConfigurationResponseMessageType - * - * @method GetServiceConfigurationResponseMessageType addResponseMessages(ServiceConfigurationResponseMessageType $responseMessages) */ class GetServiceConfigurationResponseMessageType extends ResponseMessageType { @@ -18,6 +16,27 @@ class GetServiceConfigurationResponseMessageType extends ResponseMessageType */ protected $responseMessages = null; + /** + * @autogenerated This method is safe to replace + * @param $value ServiceConfigurationResponseMessageType + * @return GetServiceConfigurationResponseMessageType + */ + public function addResponseMessages(ServiceConfigurationResponseMessageType $value) + { + $value = $this->castValueIfNeeded("responseMessages", $value); + + if ($this->responseMessages === null) { + $this->responseMessages = array(); + } + + if (!is_array($this->responseMessages)) { + $this->responseMessages = array($this->responseMessages); + } + + $this->responseMessages[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ServiceConfigurationResponseMessageType[] diff --git a/src/API/Message/GetServiceConfigurationType.php b/src/API/Message/GetServiceConfigurationType.php index 2ffb7a52..09ca2016 100644 --- a/src/API/Message/GetServiceConfigurationType.php +++ b/src/API/Message/GetServiceConfigurationType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetServiceConfigurationType - * - * @method GetServiceConfigurationType addRequestedConfiguration(\garethp\ews\API\Enumeration\ServiceConfigurationType $requestedConfiguration) */ class GetServiceConfigurationType extends BaseRequestType { @@ -43,6 +41,27 @@ public function setActingAs(\garethp\ews\API\Type\EmailAddressType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Enumeration\ServiceConfigurationType + * @return GetServiceConfigurationType + */ + public function addRequestedConfiguration(\garethp\ews\API\Enumeration\ServiceConfigurationType $value) + { + $value = $this->castValueIfNeeded("requestedConfiguration", $value); + + if ($this->requestedConfiguration === null) { + $this->requestedConfiguration = array(); + } + + if (!is_array($this->requestedConfiguration)) { + $this->requestedConfiguration = array($this->requestedConfiguration); + } + + $this->requestedConfiguration[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Enumeration\ServiceConfigurationType[] diff --git a/src/API/Message/GetSharingMetadataResponseMessageType.php b/src/API/Message/GetSharingMetadataResponseMessageType.php index 3e23ca6f..d47b1b5b 100644 --- a/src/API/Message/GetSharingMetadataResponseMessageType.php +++ b/src/API/Message/GetSharingMetadataResponseMessageType.php @@ -7,9 +7,6 @@ * * * XSD Type: GetSharingMetadataResponseMessageType - * - * @method GetSharingMetadataResponseMessageType addEncryptedSharedFolderDataCollection(\garethp\ews\API\Type\EncryptedSharedFolderDataType $encryptedSharedFolderDataCollection) - * @method GetSharingMetadataResponseMessageType addInvalidRecipients(\garethp\ews\API\Type\InvalidRecipientType $invalidRecipients) */ class GetSharingMetadataResponseMessageType extends ResponseMessageType { @@ -24,6 +21,27 @@ class GetSharingMetadataResponseMessageType extends ResponseMessageType */ protected $invalidRecipients = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\EncryptedSharedFolderDataType + * @return GetSharingMetadataResponseMessageType + */ + public function addEncryptedSharedFolderDataCollection(\garethp\ews\API\Type\EncryptedSharedFolderDataType $value) + { + $value = $this->castValueIfNeeded("encryptedSharedFolderDataCollection", $value); + + if ($this->encryptedSharedFolderDataCollection === null) { + $this->encryptedSharedFolderDataCollection = array(); + } + + if (!is_array($this->encryptedSharedFolderDataCollection)) { + $this->encryptedSharedFolderDataCollection = array($this->encryptedSharedFolderDataCollection); + } + + $this->encryptedSharedFolderDataCollection[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\EncryptedSharedFolderDataType[] @@ -44,6 +62,27 @@ public function setEncryptedSharedFolderDataCollection(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\InvalidRecipientType + * @return GetSharingMetadataResponseMessageType + */ + public function addInvalidRecipients(\garethp\ews\API\Type\InvalidRecipientType $value) + { + $value = $this->castValueIfNeeded("invalidRecipients", $value); + + if ($this->invalidRecipients === null) { + $this->invalidRecipients = array(); + } + + if (!is_array($this->invalidRecipients)) { + $this->invalidRecipients = array($this->invalidRecipients); + } + + $this->invalidRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\InvalidRecipientType[] diff --git a/src/API/Message/GetSharingMetadataType.php b/src/API/Message/GetSharingMetadataType.php index 71479f5a..94848411 100644 --- a/src/API/Message/GetSharingMetadataType.php +++ b/src/API/Message/GetSharingMetadataType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetSharingMetadataType - * - * @method GetSharingMetadataType addRecipients(string $recipients) */ class GetSharingMetadataType extends BaseRequestType { @@ -68,6 +66,27 @@ public function setSenderSmtpAddress($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetSharingMetadataType + */ + public function addRecipients($value) + { + $value = $this->castValueIfNeeded("recipients", $value); + + if ($this->recipients === null) { + $this->recipients = array(); + } + + if (!is_array($this->recipients)) { + $this->recipients = array($this->recipients); + } + + $this->recipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/GetStreamingEventsResponseMessageType.php b/src/API/Message/GetStreamingEventsResponseMessageType.php index 3eb4da82..24b91e50 100644 --- a/src/API/Message/GetStreamingEventsResponseMessageType.php +++ b/src/API/Message/GetStreamingEventsResponseMessageType.php @@ -7,9 +7,6 @@ * * * XSD Type: GetStreamingEventsResponseMessageType - * - * @method GetStreamingEventsResponseMessageType addNotifications(\garethp\ews\API\Type\NotificationType $notifications) - * @method GetStreamingEventsResponseMessageType addErrorSubscriptionIds(string $errorSubscriptionIds) */ class GetStreamingEventsResponseMessageType extends ResponseMessageType { @@ -29,6 +26,27 @@ class GetStreamingEventsResponseMessageType extends ResponseMessageType */ protected $connectionStatus = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\NotificationType + * @return GetStreamingEventsResponseMessageType + */ + public function addNotifications(\garethp\ews\API\Type\NotificationType $value) + { + $value = $this->castValueIfNeeded("notifications", $value); + + if ($this->notifications === null) { + $this->notifications = array(); + } + + if (!is_array($this->notifications)) { + $this->notifications = array($this->notifications); + } + + $this->notifications[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\NotificationType[] @@ -49,6 +67,27 @@ public function setNotifications(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetStreamingEventsResponseMessageType + */ + public function addErrorSubscriptionIds($value) + { + $value = $this->castValueIfNeeded("errorSubscriptionIds", $value); + + if ($this->errorSubscriptionIds === null) { + $this->errorSubscriptionIds = array(); + } + + if (!is_array($this->errorSubscriptionIds)) { + $this->errorSubscriptionIds = array($this->errorSubscriptionIds); + } + + $this->errorSubscriptionIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/GetStreamingEventsType.php b/src/API/Message/GetStreamingEventsType.php index 0b26d99d..2dea60ce 100644 --- a/src/API/Message/GetStreamingEventsType.php +++ b/src/API/Message/GetStreamingEventsType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetStreamingEventsType - * - * @method GetStreamingEventsType addSubscriptionIds(string $subscriptionIds) */ class GetStreamingEventsType extends BaseRequestType { @@ -23,6 +21,27 @@ class GetStreamingEventsType extends BaseRequestType */ protected $connectionTimeout = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetStreamingEventsType + */ + public function addSubscriptionIds($value) + { + $value = $this->castValueIfNeeded("subscriptionIds", $value); + + if ($this->subscriptionIds === null) { + $this->subscriptionIds = array(); + } + + if (!is_array($this->subscriptionIds)) { + $this->subscriptionIds = array($this->subscriptionIds); + } + + $this->subscriptionIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/GetUserAvailabilityRequestType.php b/src/API/Message/GetUserAvailabilityRequestType.php index 55c64afd..d2d5e204 100644 --- a/src/API/Message/GetUserAvailabilityRequestType.php +++ b/src/API/Message/GetUserAvailabilityRequestType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetUserAvailabilityRequestType - * - * @method GetUserAvailabilityRequestType addMailboxDataArray(\garethp\ews\API\Type\MailboxDataType $mailboxDataArray) */ class GetUserAvailabilityRequestType extends BaseRequestType { @@ -53,6 +51,27 @@ public function setTimeZone(\garethp\ews\API\Type\TimeZone $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\MailboxDataType + * @return GetUserAvailabilityRequestType + */ + public function addMailboxDataArray(\garethp\ews\API\Type\MailboxDataType $value) + { + $value = $this->castValueIfNeeded("mailboxDataArray", $value); + + if ($this->mailboxDataArray === null) { + $this->mailboxDataArray = array(); + } + + if (!is_array($this->mailboxDataArray)) { + $this->mailboxDataArray = array($this->mailboxDataArray); + } + + $this->mailboxDataArray[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\MailboxDataType[] diff --git a/src/API/Message/GetUserAvailabilityResponseType.php b/src/API/Message/GetUserAvailabilityResponseType.php index 82ee0ceb..cf530d3b 100644 --- a/src/API/Message/GetUserAvailabilityResponseType.php +++ b/src/API/Message/GetUserAvailabilityResponseType.php @@ -9,8 +9,6 @@ * * * XSD Type: GetUserAvailabilityResponseType - * - * @method GetUserAvailabilityResponseType addFreeBusyResponseArray(FreeBusyResponseType $freeBusyResponseArray) */ class GetUserAvailabilityResponseType extends Message { @@ -25,6 +23,27 @@ class GetUserAvailabilityResponseType extends Message */ protected $suggestionsResponse = null; + /** + * @autogenerated This method is safe to replace + * @param $value FreeBusyResponseType + * @return GetUserAvailabilityResponseType + */ + public function addFreeBusyResponseArray(FreeBusyResponseType $value) + { + $value = $this->castValueIfNeeded("freeBusyResponseArray", $value); + + if ($this->freeBusyResponseArray === null) { + $this->freeBusyResponseArray = array(); + } + + if (!is_array($this->freeBusyResponseArray)) { + $this->freeBusyResponseArray = array($this->freeBusyResponseArray); + } + + $this->freeBusyResponseArray[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FreeBusyResponseType[] diff --git a/src/API/Message/GetUserConfigurationType.php b/src/API/Message/GetUserConfigurationType.php index 657ed042..5e621229 100644 --- a/src/API/Message/GetUserConfigurationType.php +++ b/src/API/Message/GetUserConfigurationType.php @@ -7,8 +7,6 @@ * * * XSD Type: GetUserConfigurationType - * - * @method GetUserConfigurationType addUserConfigurationProperties(string $userConfigurationProperties) */ class GetUserConfigurationType extends BaseRequestType { @@ -43,6 +41,27 @@ public function setUserConfigurationName(\garethp\ews\API\Type\UserConfiguration return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return GetUserConfigurationType + */ + public function addUserConfigurationProperties($value) + { + $value = $this->castValueIfNeeded("userConfigurationProperties", $value); + + if ($this->userConfigurationProperties === null) { + $this->userConfigurationProperties = array(); + } + + if (!is_array($this->userConfigurationProperties)) { + $this->userConfigurationProperties = array($this->userConfigurationProperties); + } + + $this->userConfigurationProperties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Message/RemoveDelegateType.php b/src/API/Message/RemoveDelegateType.php index 3bdd5a17..bc00e8d6 100644 --- a/src/API/Message/RemoveDelegateType.php +++ b/src/API/Message/RemoveDelegateType.php @@ -7,8 +7,6 @@ * * * XSD Type: RemoveDelegateType - * - * @method RemoveDelegateType addUserIds(\garethp\ews\API\Type\UserIdType $userIds) */ class RemoveDelegateType extends BaseDelegateType { @@ -18,6 +16,27 @@ class RemoveDelegateType extends BaseDelegateType */ protected $userIds = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\UserIdType + * @return RemoveDelegateType + */ + public function addUserIds(\garethp\ews\API\Type\UserIdType $value) + { + $value = $this->castValueIfNeeded("userIds", $value); + + if ($this->userIds === null) { + $this->userIds = array(); + } + + if (!is_array($this->userIds)) { + $this->userIds = array($this->userIds); + } + + $this->userIds[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\UserIdType[] diff --git a/src/API/Message/SuggestionsResponseType.php b/src/API/Message/SuggestionsResponseType.php index a39f36e8..9c401392 100644 --- a/src/API/Message/SuggestionsResponseType.php +++ b/src/API/Message/SuggestionsResponseType.php @@ -9,8 +9,6 @@ * * * XSD Type: SuggestionsResponseType - * - * @method SuggestionsResponseType addSuggestionDayResultArray(\garethp\ews\API\Type\SuggestionDayResultType $suggestionDayResultArray) */ class SuggestionsResponseType extends Message { @@ -45,6 +43,27 @@ public function setResponseMessage(ResponseMessageType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\SuggestionDayResultType + * @return SuggestionsResponseType + */ + public function addSuggestionDayResultArray(\garethp\ews\API\Type\SuggestionDayResultType $value) + { + $value = $this->castValueIfNeeded("suggestionDayResultArray", $value); + + if ($this->suggestionDayResultArray === null) { + $this->suggestionDayResultArray = array(); + } + + if (!is_array($this->suggestionDayResultArray)) { + $this->suggestionDayResultArray = array($this->suggestionDayResultArray); + } + + $this->suggestionDayResultArray[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\SuggestionDayResultType[] diff --git a/src/API/Message/SyncFolderItemsType.php b/src/API/Message/SyncFolderItemsType.php index 74576762..eb95a1ef 100644 --- a/src/API/Message/SyncFolderItemsType.php +++ b/src/API/Message/SyncFolderItemsType.php @@ -7,8 +7,6 @@ * * * XSD Type: SyncFolderItemsType - * - * @method SyncFolderItemsType addIgnore(\garethp\ews\API\Type\ItemIdType $ignore) */ class SyncFolderItemsType extends BaseRequestType { @@ -103,6 +101,27 @@ public function setSyncState($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ItemIdType + * @return SyncFolderItemsType + */ + public function addIgnore(\garethp\ews\API\Type\ItemIdType $value) + { + $value = $this->castValueIfNeeded("ignore", $value); + + if ($this->ignore === null) { + $this->ignore = array(); + } + + if (!is_array($this->ignore)) { + $this->ignore = array($this->ignore); + } + + $this->ignore[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ItemIdType[] diff --git a/src/API/Message/UpdateDelegateType.php b/src/API/Message/UpdateDelegateType.php index 8d9fbc24..86227152 100644 --- a/src/API/Message/UpdateDelegateType.php +++ b/src/API/Message/UpdateDelegateType.php @@ -7,8 +7,6 @@ * * * XSD Type: UpdateDelegateType - * - * @method UpdateDelegateType addDelegateUsers(\garethp\ews\API\Type\DelegateUserType $delegateUsers) */ class UpdateDelegateType extends BaseDelegateType { @@ -23,6 +21,27 @@ class UpdateDelegateType extends BaseDelegateType */ protected $deliverMeetingRequests = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\DelegateUserType + * @return UpdateDelegateType + */ + public function addDelegateUsers(\garethp\ews\API\Type\DelegateUserType $value) + { + $value = $this->castValueIfNeeded("delegateUsers", $value); + + if ($this->delegateUsers === null) { + $this->delegateUsers = array(); + } + + if (!is_array($this->delegateUsers)) { + $this->delegateUsers = array($this->delegateUsers); + } + + $this->delegateUsers[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\DelegateUserType[] diff --git a/src/API/Message/UpdateFolderType.php b/src/API/Message/UpdateFolderType.php index a9220de4..9f6478aa 100644 --- a/src/API/Message/UpdateFolderType.php +++ b/src/API/Message/UpdateFolderType.php @@ -7,8 +7,6 @@ * * * XSD Type: UpdateFolderType - * - * @method UpdateFolderType addFolderChanges(\garethp\ews\API\Type\FolderChangeType $folderChanges) */ class UpdateFolderType extends BaseRequestType { @@ -18,6 +16,27 @@ class UpdateFolderType extends BaseRequestType */ protected $folderChanges = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\FolderChangeType + * @return UpdateFolderType + */ + public function addFolderChanges(\garethp\ews\API\Type\FolderChangeType $value) + { + $value = $this->castValueIfNeeded("folderChanges", $value); + + if ($this->folderChanges === null) { + $this->folderChanges = array(); + } + + if (!is_array($this->folderChanges)) { + $this->folderChanges = array($this->folderChanges); + } + + $this->folderChanges[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\FolderChangeType[] diff --git a/src/API/Message/UpdateInboxRulesResponseType.php b/src/API/Message/UpdateInboxRulesResponseType.php index 6c508752..80d3962d 100644 --- a/src/API/Message/UpdateInboxRulesResponseType.php +++ b/src/API/Message/UpdateInboxRulesResponseType.php @@ -7,8 +7,6 @@ * * * XSD Type: UpdateInboxRulesResponseType - * - * @method UpdateInboxRulesResponseType addRuleOperationErrors(\garethp\ews\API\Type\RuleOperationErrorType $ruleOperationErrors) */ class UpdateInboxRulesResponseType extends ResponseMessageType { @@ -18,6 +16,27 @@ class UpdateInboxRulesResponseType extends ResponseMessageType */ protected $ruleOperationErrors = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\RuleOperationErrorType + * @return UpdateInboxRulesResponseType + */ + public function addRuleOperationErrors(\garethp\ews\API\Type\RuleOperationErrorType $value) + { + $value = $this->castValueIfNeeded("ruleOperationErrors", $value); + + if ($this->ruleOperationErrors === null) { + $this->ruleOperationErrors = array(); + } + + if (!is_array($this->ruleOperationErrors)) { + $this->ruleOperationErrors = array($this->ruleOperationErrors); + } + + $this->ruleOperationErrors[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\RuleOperationErrorType[] diff --git a/src/API/Message/UpdateItemType.php b/src/API/Message/UpdateItemType.php index aff9189f..87d4a562 100644 --- a/src/API/Message/UpdateItemType.php +++ b/src/API/Message/UpdateItemType.php @@ -7,8 +7,6 @@ * * * XSD Type: UpdateItemType - * - * @method UpdateItemType addItemChanges(\garethp\ews\API\Type\ItemChangeType $itemChanges) */ class UpdateItemType extends BaseRequestType { @@ -118,6 +116,27 @@ public function setSavedItemFolderId(\garethp\ews\API\Type\TargetFolderIdType $v return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\ItemChangeType + * @return UpdateItemType + */ + public function addItemChanges(\garethp\ews\API\Type\ItemChangeType $value) + { + $value = $this->castValueIfNeeded("itemChanges", $value); + + if ($this->itemChanges === null) { + $this->itemChanges = array(); + } + + if (!is_array($this->itemChanges)) { + $this->itemChanges = array($this->itemChanges); + } + + $this->itemChanges[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\ItemChangeType[] diff --git a/src/API/Message/UploadItemsType.php b/src/API/Message/UploadItemsType.php index d839c6b6..b2283652 100644 --- a/src/API/Message/UploadItemsType.php +++ b/src/API/Message/UploadItemsType.php @@ -7,8 +7,6 @@ * * * XSD Type: UploadItemsType - * - * @method UploadItemsType addItems(\garethp\ews\API\Type\UploadItemType $items) */ class UploadItemsType extends BaseRequestType { @@ -18,6 +16,27 @@ class UploadItemsType extends BaseRequestType */ protected $items = null; + /** + * @autogenerated This method is safe to replace + * @param $value \garethp\ews\API\Type\UploadItemType + * @return UploadItemsType + */ + public function addItems(\garethp\ews\API\Type\UploadItemType $value) + { + $value = $this->castValueIfNeeded("items", $value); + + if ($this->items === null) { + $this->items = array(); + } + + if (!is_array($this->items)) { + $this->items = array($this->items); + } + + $this->items[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return \garethp\ews\API\Type\UploadItemType[] diff --git a/src/API/Type/ArrayOfAttachmentsType.php b/src/API/Type/ArrayOfAttachmentsType.php index 791857f7..7ae85142 100644 --- a/src/API/Type/ArrayOfAttachmentsType.php +++ b/src/API/Type/ArrayOfAttachmentsType.php @@ -9,9 +9,6 @@ * * * XSD Type: ArrayOfAttachmentsType - * - * @method ArrayOfAttachmentsType addItemAttachment(ItemAttachmentType $itemAttachment) - * @method ArrayOfAttachmentsType addFileAttachment(FileAttachmentType $fileAttachment) */ class ArrayOfAttachmentsType extends Type { @@ -26,6 +23,27 @@ class ArrayOfAttachmentsType extends Type */ protected $fileAttachment = null; + /** + * @autogenerated This method is safe to replace + * @param $value ItemAttachmentType + * @return ArrayOfAttachmentsType + */ + public function addItemAttachment(ItemAttachmentType $value) + { + $value = $this->castValueIfNeeded("itemAttachment", $value); + + if ($this->itemAttachment === null) { + $this->itemAttachment = array(); + } + + if (!is_array($this->itemAttachment)) { + $this->itemAttachment = array($this->itemAttachment); + } + + $this->itemAttachment[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemAttachmentType[] @@ -46,6 +64,27 @@ public function setItemAttachment(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FileAttachmentType + * @return ArrayOfAttachmentsType + */ + public function addFileAttachment(FileAttachmentType $value) + { + $value = $this->castValueIfNeeded("fileAttachment", $value); + + if ($this->fileAttachment === null) { + $this->fileAttachment = array(); + } + + if (!is_array($this->fileAttachment)) { + $this->fileAttachment = array($this->fileAttachment); + } + + $this->fileAttachment[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FileAttachmentType[] diff --git a/src/API/Type/ArrayOfAttendeeConflictDataType.php b/src/API/Type/ArrayOfAttendeeConflictDataType.php index 63b80b25..b6999a4f 100644 --- a/src/API/Type/ArrayOfAttendeeConflictDataType.php +++ b/src/API/Type/ArrayOfAttendeeConflictDataType.php @@ -9,11 +9,6 @@ * * * XSD Type: ArrayOfAttendeeConflictData - * - * @method ArrayOfAttendeeConflictDataType addUnknownAttendeeConflictData(UnknownAttendeeConflictDataType $unknownAttendeeConflictData) - * @method ArrayOfAttendeeConflictDataType addIndividualAttendeeConflictData(IndividualAttendeeConflictDataType $individualAttendeeConflictData) - * @method ArrayOfAttendeeConflictDataType addTooBigGroupAttendeeConflictData(TooBigGroupAttendeeConflictDataType $tooBigGroupAttendeeConflictData) - * @method ArrayOfAttendeeConflictDataType addGroupAttendeeConflictData(GroupAttendeeConflictDataType $groupAttendeeConflictData) */ class ArrayOfAttendeeConflictDataType extends Type { @@ -38,6 +33,27 @@ class ArrayOfAttendeeConflictDataType extends Type */ protected $groupAttendeeConflictData = null; + /** + * @autogenerated This method is safe to replace + * @param $value UnknownAttendeeConflictDataType + * @return ArrayOfAttendeeConflictDataType + */ + public function addUnknownAttendeeConflictData(UnknownAttendeeConflictDataType $value) + { + $value = $this->castValueIfNeeded("unknownAttendeeConflictData", $value); + + if ($this->unknownAttendeeConflictData === null) { + $this->unknownAttendeeConflictData = array(); + } + + if (!is_array($this->unknownAttendeeConflictData)) { + $this->unknownAttendeeConflictData = array($this->unknownAttendeeConflictData); + } + + $this->unknownAttendeeConflictData[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return UnknownAttendeeConflictDataType[] @@ -58,6 +74,27 @@ public function setUnknownAttendeeConflictData(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndividualAttendeeConflictDataType + * @return ArrayOfAttendeeConflictDataType + */ + public function addIndividualAttendeeConflictData(IndividualAttendeeConflictDataType $value) + { + $value = $this->castValueIfNeeded("individualAttendeeConflictData", $value); + + if ($this->individualAttendeeConflictData === null) { + $this->individualAttendeeConflictData = array(); + } + + if (!is_array($this->individualAttendeeConflictData)) { + $this->individualAttendeeConflictData = array($this->individualAttendeeConflictData); + } + + $this->individualAttendeeConflictData[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndividualAttendeeConflictDataType[] @@ -78,6 +115,27 @@ public function setIndividualAttendeeConflictData(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TooBigGroupAttendeeConflictDataType + * @return ArrayOfAttendeeConflictDataType + */ + public function addTooBigGroupAttendeeConflictData(TooBigGroupAttendeeConflictDataType $value) + { + $value = $this->castValueIfNeeded("tooBigGroupAttendeeConflictData", $value); + + if ($this->tooBigGroupAttendeeConflictData === null) { + $this->tooBigGroupAttendeeConflictData = array(); + } + + if (!is_array($this->tooBigGroupAttendeeConflictData)) { + $this->tooBigGroupAttendeeConflictData = array($this->tooBigGroupAttendeeConflictData); + } + + $this->tooBigGroupAttendeeConflictData[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TooBigGroupAttendeeConflictDataType[] @@ -98,6 +156,27 @@ public function setTooBigGroupAttendeeConflictData(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GroupAttendeeConflictDataType + * @return ArrayOfAttendeeConflictDataType + */ + public function addGroupAttendeeConflictData(GroupAttendeeConflictDataType $value) + { + $value = $this->castValueIfNeeded("groupAttendeeConflictData", $value); + + if ($this->groupAttendeeConflictData === null) { + $this->groupAttendeeConflictData = array(); + } + + if (!is_array($this->groupAttendeeConflictData)) { + $this->groupAttendeeConflictData = array($this->groupAttendeeConflictData); + } + + $this->groupAttendeeConflictData[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GroupAttendeeConflictDataType[] diff --git a/src/API/Type/ArrayOfDLExpansionType.php b/src/API/Type/ArrayOfDLExpansionType.php index 374f9b5f..fcbd2b73 100644 --- a/src/API/Type/ArrayOfDLExpansionType.php +++ b/src/API/Type/ArrayOfDLExpansionType.php @@ -9,8 +9,6 @@ * * * XSD Type: ArrayOfDLExpansionType - * - * @method ArrayOfDLExpansionType addMailbox(EmailAddressType $mailbox) */ class ArrayOfDLExpansionType extends Type { @@ -154,6 +152,27 @@ public function setTotalItemsInView($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return ArrayOfDLExpansionType + */ + public function addMailbox(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("mailbox", $value); + + if ($this->mailbox === null) { + $this->mailbox = array(); + } + + if (!is_array($this->mailbox)) { + $this->mailbox = array($this->mailbox); + } + + $this->mailbox[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] diff --git a/src/API/Type/ArrayOfFoldersType.php b/src/API/Type/ArrayOfFoldersType.php index a5b00f83..c93ad854 100644 --- a/src/API/Type/ArrayOfFoldersType.php +++ b/src/API/Type/ArrayOfFoldersType.php @@ -12,12 +12,6 @@ * * * XSD Type: ArrayOfFoldersType - * - * @method ArrayOfFoldersType addFolder(FolderType $folder) - * @method ArrayOfFoldersType addCalendarFolder(CalendarFolderType $calendarFolder) - * @method ArrayOfFoldersType addContactsFolder(ContactsFolderType $contactsFolder) - * @method ArrayOfFoldersType addSearchFolder(SearchFolderType $searchFolder) - * @method ArrayOfFoldersType addTasksFolder(TasksFolderType $tasksFolder) */ class ArrayOfFoldersType extends Type implements Countable, ArrayAccess, IteratorAggregate { @@ -131,6 +125,27 @@ public function getIterator() return new \ArrayIterator($this->allFolders); } + /** + * @autogenerated This method is safe to replace + * @param $value FolderType + * @return ArrayOfFoldersType + */ + public function addFolder(FolderType $value) + { + $value = $this->castValueIfNeeded("folder", $value); + + if ($this->folder === null) { + $this->folder = array(); + } + + if (!is_array($this->folder)) { + $this->folder = array($this->folder); + } + + $this->folder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderType[] @@ -151,6 +166,27 @@ public function setFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CalendarFolderType + * @return ArrayOfFoldersType + */ + public function addCalendarFolder(CalendarFolderType $value) + { + $value = $this->castValueIfNeeded("calendarFolder", $value); + + if ($this->calendarFolder === null) { + $this->calendarFolder = array(); + } + + if (!is_array($this->calendarFolder)) { + $this->calendarFolder = array($this->calendarFolder); + } + + $this->calendarFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CalendarFolderType[] @@ -171,6 +207,27 @@ public function setCalendarFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ContactsFolderType + * @return ArrayOfFoldersType + */ + public function addContactsFolder(ContactsFolderType $value) + { + $value = $this->castValueIfNeeded("contactsFolder", $value); + + if ($this->contactsFolder === null) { + $this->contactsFolder = array(); + } + + if (!is_array($this->contactsFolder)) { + $this->contactsFolder = array($this->contactsFolder); + } + + $this->contactsFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ContactsFolderType[] @@ -191,6 +248,27 @@ public function setContactsFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SearchFolderType + * @return ArrayOfFoldersType + */ + public function addSearchFolder(SearchFolderType $value) + { + $value = $this->castValueIfNeeded("searchFolder", $value); + + if ($this->searchFolder === null) { + $this->searchFolder = array(); + } + + if (!is_array($this->searchFolder)) { + $this->searchFolder = array($this->searchFolder); + } + + $this->searchFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SearchFolderType[] @@ -211,6 +289,27 @@ public function setSearchFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TasksFolderType + * @return ArrayOfFoldersType + */ + public function addTasksFolder(TasksFolderType $value) + { + $value = $this->castValueIfNeeded("tasksFolder", $value); + + if ($this->tasksFolder === null) { + $this->tasksFolder = array(); + } + + if (!is_array($this->tasksFolder)) { + $this->tasksFolder = array($this->tasksFolder); + } + + $this->tasksFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TasksFolderType[] diff --git a/src/API/Type/ArrayOfRealItemsType.php b/src/API/Type/ArrayOfRealItemsType.php index 1fe32a31..10f87175 100644 --- a/src/API/Type/ArrayOfRealItemsType.php +++ b/src/API/Type/ArrayOfRealItemsType.php @@ -12,18 +12,6 @@ * * * XSD Type: ArrayOfRealItemsType - * - * @method ArrayOfRealItemsType addItem(ItemType $item) - * @method ArrayOfRealItemsType addMessage(MessageType $message) - * @method ArrayOfRealItemsType addCalendarItem(CalendarItemType $calendarItem) - * @method ArrayOfRealItemsType addContact(ContactItemType $contact) - * @method ArrayOfRealItemsType addDistributionList(DistributionListType $distributionList) - * @method ArrayOfRealItemsType addMeetingMessage(MeetingMessageType $meetingMessage) - * @method ArrayOfRealItemsType addMeetingRequest(MeetingRequestMessageType $meetingRequest) - * @method ArrayOfRealItemsType addMeetingResponse(MeetingResponseMessageType $meetingResponse) - * @method ArrayOfRealItemsType addMeetingCancellation(MeetingCancellationMessageType $meetingCancellation) - * @method ArrayOfRealItemsType addTask(TaskType $task) - * @method ArrayOfRealItemsType addPostItem(PostItemType $postItem) */ class ArrayOfRealItemsType extends Type implements Countable, ArrayAccess, IteratorAggregate { @@ -148,6 +136,27 @@ public function getIterator() return new \ArrayIterator($this->itemsArray); } + /** + * @autogenerated This method is safe to replace + * @param $value ItemType + * @return ArrayOfRealItemsType + */ + public function addItem(ItemType $value) + { + $value = $this->castValueIfNeeded("item", $value); + + if ($this->item === null) { + $this->item = array(); + } + + if (!is_array($this->item)) { + $this->item = array($this->item); + } + + $this->item[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemType[] @@ -168,6 +177,27 @@ public function setItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MessageType + * @return ArrayOfRealItemsType + */ + public function addMessage(MessageType $value) + { + $value = $this->castValueIfNeeded("message", $value); + + if ($this->message === null) { + $this->message = array(); + } + + if (!is_array($this->message)) { + $this->message = array($this->message); + } + + $this->message[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MessageType[] @@ -188,6 +218,27 @@ public function setMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CalendarItemType + * @return ArrayOfRealItemsType + */ + public function addCalendarItem(CalendarItemType $value) + { + $value = $this->castValueIfNeeded("calendarItem", $value); + + if ($this->calendarItem === null) { + $this->calendarItem = array(); + } + + if (!is_array($this->calendarItem)) { + $this->calendarItem = array($this->calendarItem); + } + + $this->calendarItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CalendarItemType[] @@ -208,6 +259,27 @@ public function setCalendarItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ContactItemType + * @return ArrayOfRealItemsType + */ + public function addContact(ContactItemType $value) + { + $value = $this->castValueIfNeeded("contact", $value); + + if ($this->contact === null) { + $this->contact = array(); + } + + if (!is_array($this->contact)) { + $this->contact = array($this->contact); + } + + $this->contact[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ContactItemType[] @@ -228,6 +300,27 @@ public function setContact(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DistributionListType + * @return ArrayOfRealItemsType + */ + public function addDistributionList(DistributionListType $value) + { + $value = $this->castValueIfNeeded("distributionList", $value); + + if ($this->distributionList === null) { + $this->distributionList = array(); + } + + if (!is_array($this->distributionList)) { + $this->distributionList = array($this->distributionList); + } + + $this->distributionList[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DistributionListType[] @@ -248,6 +341,27 @@ public function setDistributionList(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingMessageType + * @return ArrayOfRealItemsType + */ + public function addMeetingMessage(MeetingMessageType $value) + { + $value = $this->castValueIfNeeded("meetingMessage", $value); + + if ($this->meetingMessage === null) { + $this->meetingMessage = array(); + } + + if (!is_array($this->meetingMessage)) { + $this->meetingMessage = array($this->meetingMessage); + } + + $this->meetingMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingMessageType[] @@ -268,6 +382,27 @@ public function setMeetingMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingRequestMessageType + * @return ArrayOfRealItemsType + */ + public function addMeetingRequest(MeetingRequestMessageType $value) + { + $value = $this->castValueIfNeeded("meetingRequest", $value); + + if ($this->meetingRequest === null) { + $this->meetingRequest = array(); + } + + if (!is_array($this->meetingRequest)) { + $this->meetingRequest = array($this->meetingRequest); + } + + $this->meetingRequest[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingRequestMessageType[] @@ -288,6 +423,27 @@ public function setMeetingRequest(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingResponseMessageType + * @return ArrayOfRealItemsType + */ + public function addMeetingResponse(MeetingResponseMessageType $value) + { + $value = $this->castValueIfNeeded("meetingResponse", $value); + + if ($this->meetingResponse === null) { + $this->meetingResponse = array(); + } + + if (!is_array($this->meetingResponse)) { + $this->meetingResponse = array($this->meetingResponse); + } + + $this->meetingResponse[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingResponseMessageType[] @@ -308,6 +464,27 @@ public function setMeetingResponse(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingCancellationMessageType + * @return ArrayOfRealItemsType + */ + public function addMeetingCancellation(MeetingCancellationMessageType $value) + { + $value = $this->castValueIfNeeded("meetingCancellation", $value); + + if ($this->meetingCancellation === null) { + $this->meetingCancellation = array(); + } + + if (!is_array($this->meetingCancellation)) { + $this->meetingCancellation = array($this->meetingCancellation); + } + + $this->meetingCancellation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingCancellationMessageType[] @@ -328,6 +505,27 @@ public function setMeetingCancellation(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TaskType + * @return ArrayOfRealItemsType + */ + public function addTask(TaskType $value) + { + $value = $this->castValueIfNeeded("task", $value); + + if ($this->task === null) { + $this->task = array(); + } + + if (!is_array($this->task)) { + $this->task = array($this->task); + } + + $this->task[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TaskType[] @@ -348,6 +546,27 @@ public function setTask(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PostItemType + * @return ArrayOfRealItemsType + */ + public function addPostItem(PostItemType $value) + { + $value = $this->castValueIfNeeded("postItem", $value); + + if ($this->postItem === null) { + $this->postItem = array(); + } + + if (!is_array($this->postItem)) { + $this->postItem = array($this->postItem); + } + + $this->postItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PostItemType[] diff --git a/src/API/Type/ArrayOfResolutionType.php b/src/API/Type/ArrayOfResolutionType.php index 648c98fc..be3c05f7 100644 --- a/src/API/Type/ArrayOfResolutionType.php +++ b/src/API/Type/ArrayOfResolutionType.php @@ -9,8 +9,6 @@ * * * XSD Type: ArrayOfResolutionType - * - * @method ArrayOfResolutionType addResolution(ResolutionType $resolution) */ class ArrayOfResolutionType extends Type { @@ -154,6 +152,27 @@ public function setTotalItemsInView($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ResolutionType + * @return ArrayOfResolutionType + */ + public function addResolution(ResolutionType $value) + { + $value = $this->castValueIfNeeded("resolution", $value); + + if ($this->resolution === null) { + $this->resolution = array(); + } + + if (!is_array($this->resolution)) { + $this->resolution = array($this->resolution); + } + + $this->resolution[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ResolutionType[] diff --git a/src/API/Type/ArrayOfRuleOperationsType.php b/src/API/Type/ArrayOfRuleOperationsType.php index 8352d01e..bc7add43 100644 --- a/src/API/Type/ArrayOfRuleOperationsType.php +++ b/src/API/Type/ArrayOfRuleOperationsType.php @@ -9,10 +9,6 @@ * * Represents an array of rule operations to be performed * XSD Type: ArrayOfRuleOperationsType - * - * @method ArrayOfRuleOperationsType addCreateRuleOperation(CreateRuleOperationType $createRuleOperation) - * @method ArrayOfRuleOperationsType addSetRuleOperation(SetRuleOperationType $setRuleOperation) - * @method ArrayOfRuleOperationsType addDeleteRuleOperation(DeleteRuleOperationType $deleteRuleOperation) */ class ArrayOfRuleOperationsType extends Type { @@ -32,6 +28,27 @@ class ArrayOfRuleOperationsType extends Type */ protected $deleteRuleOperation = null; + /** + * @autogenerated This method is safe to replace + * @param $value CreateRuleOperationType + * @return ArrayOfRuleOperationsType + */ + public function addCreateRuleOperation(CreateRuleOperationType $value) + { + $value = $this->castValueIfNeeded("createRuleOperation", $value); + + if ($this->createRuleOperation === null) { + $this->createRuleOperation = array(); + } + + if (!is_array($this->createRuleOperation)) { + $this->createRuleOperation = array($this->createRuleOperation); + } + + $this->createRuleOperation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CreateRuleOperationType[] @@ -52,6 +69,27 @@ public function setCreateRuleOperation(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SetRuleOperationType + * @return ArrayOfRuleOperationsType + */ + public function addSetRuleOperation(SetRuleOperationType $value) + { + $value = $this->castValueIfNeeded("setRuleOperation", $value); + + if ($this->setRuleOperation === null) { + $this->setRuleOperation = array(); + } + + if (!is_array($this->setRuleOperation)) { + $this->setRuleOperation = array($this->setRuleOperation); + } + + $this->setRuleOperation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SetRuleOperationType[] @@ -72,6 +110,27 @@ public function setSetRuleOperation(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeleteRuleOperationType + * @return ArrayOfRuleOperationsType + */ + public function addDeleteRuleOperation(DeleteRuleOperationType $value) + { + $value = $this->castValueIfNeeded("deleteRuleOperation", $value); + + if ($this->deleteRuleOperation === null) { + $this->deleteRuleOperation = array(); + } + + if (!is_array($this->deleteRuleOperation)) { + $this->deleteRuleOperation = array($this->deleteRuleOperation); + } + + $this->deleteRuleOperation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeleteRuleOperationType[] diff --git a/src/API/Type/ArrayOfTrackingPropertiesType.php b/src/API/Type/ArrayOfTrackingPropertiesType.php index dab69b9b..d488fa22 100644 --- a/src/API/Type/ArrayOfTrackingPropertiesType.php +++ b/src/API/Type/ArrayOfTrackingPropertiesType.php @@ -9,8 +9,6 @@ * * * XSD Type: ArrayOfTrackingPropertiesType - * - * @method ArrayOfTrackingPropertiesType addTrackingPropertyType(TrackingPropertyType $trackingPropertyType) */ class ArrayOfTrackingPropertiesType extends Type { @@ -20,6 +18,27 @@ class ArrayOfTrackingPropertiesType extends Type */ protected $trackingPropertyType = null; + /** + * @autogenerated This method is safe to replace + * @param $value TrackingPropertyType + * @return ArrayOfTrackingPropertiesType + */ + public function addTrackingPropertyType(TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("trackingPropertyType", $value); + + if ($this->trackingPropertyType === null) { + $this->trackingPropertyType = array(); + } + + if (!is_array($this->trackingPropertyType)) { + $this->trackingPropertyType = array($this->trackingPropertyType); + } + + $this->trackingPropertyType[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TrackingPropertyType[] diff --git a/src/API/Type/ArrayOfTransitionsType.php b/src/API/Type/ArrayOfTransitionsType.php index efb0e888..25e13466 100644 --- a/src/API/Type/ArrayOfTransitionsType.php +++ b/src/API/Type/ArrayOfTransitionsType.php @@ -9,11 +9,6 @@ * * * XSD Type: ArrayOfTransitionsType - * - * @method ArrayOfTransitionsType addAbsoluteDateTransition(AbsoluteDateTransition $absoluteDateTransition) - * @method ArrayOfTransitionsType addRecurringDayTransition(RecurringDayTransition $recurringDayTransition) - * @method ArrayOfTransitionsType addRecurringDateTransition(RecurringDateTransition $recurringDateTransition) - * @method ArrayOfTransitionsType addTransition(Transition $transition) */ class ArrayOfTransitionsType extends Type { @@ -63,6 +58,27 @@ public function setId($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AbsoluteDateTransition + * @return ArrayOfTransitionsType + */ + public function addAbsoluteDateTransition(AbsoluteDateTransition $value) + { + $value = $this->castValueIfNeeded("absoluteDateTransition", $value); + + if ($this->absoluteDateTransition === null) { + $this->absoluteDateTransition = array(); + } + + if (!is_array($this->absoluteDateTransition)) { + $this->absoluteDateTransition = array($this->absoluteDateTransition); + } + + $this->absoluteDateTransition[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AbsoluteDateTransition[] @@ -83,6 +99,27 @@ public function setAbsoluteDateTransition(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RecurringDayTransition + * @return ArrayOfTransitionsType + */ + public function addRecurringDayTransition(RecurringDayTransition $value) + { + $value = $this->castValueIfNeeded("recurringDayTransition", $value); + + if ($this->recurringDayTransition === null) { + $this->recurringDayTransition = array(); + } + + if (!is_array($this->recurringDayTransition)) { + $this->recurringDayTransition = array($this->recurringDayTransition); + } + + $this->recurringDayTransition[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RecurringDayTransition[] @@ -103,6 +140,27 @@ public function setRecurringDayTransition(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RecurringDateTransition + * @return ArrayOfTransitionsType + */ + public function addRecurringDateTransition(RecurringDateTransition $value) + { + $value = $this->castValueIfNeeded("recurringDateTransition", $value); + + if ($this->recurringDateTransition === null) { + $this->recurringDateTransition = array(); + } + + if (!is_array($this->recurringDateTransition)) { + $this->recurringDateTransition = array($this->recurringDateTransition); + } + + $this->recurringDateTransition[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RecurringDateTransition[] @@ -123,6 +181,27 @@ public function setRecurringDateTransition(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Transition + * @return ArrayOfTransitionsType + */ + public function addTransition(Transition $value) + { + $value = $this->castValueIfNeeded("transition", $value); + + if ($this->transition === null) { + $this->transition = array(); + } + + if (!is_array($this->transition)) { + $this->transition = array($this->transition); + } + + $this->transition[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Transition[] diff --git a/src/API/Type/BaseFolderType.php b/src/API/Type/BaseFolderType.php index 5a0e0f7f..8db7ffc4 100644 --- a/src/API/Type/BaseFolderType.php +++ b/src/API/Type/BaseFolderType.php @@ -9,8 +9,6 @@ * * * XSD Type: BaseFolderType - * - * @method BaseFolderType addExtendedProperty(ExtendedPropertyType $extendedProperty) */ class BaseFolderType extends Type { @@ -180,6 +178,27 @@ public function setChildFolderCount($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedPropertyType + * @return BaseFolderType + */ + public function addExtendedProperty(ExtendedPropertyType $value) + { + $value = $this->castValueIfNeeded("extendedProperty", $value); + + if ($this->extendedProperty === null) { + $this->extendedProperty = array(); + } + + if (!is_array($this->extendedProperty)) { + $this->extendedProperty = array($this->extendedProperty); + } + + $this->extendedProperty[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedPropertyType[] diff --git a/src/API/Type/BaseSubscriptionRequestType.php b/src/API/Type/BaseSubscriptionRequestType.php index 58964819..ee1d1cf3 100644 --- a/src/API/Type/BaseSubscriptionRequestType.php +++ b/src/API/Type/BaseSubscriptionRequestType.php @@ -9,8 +9,6 @@ * * * XSD Type: BaseSubscriptionRequestType - * - * @method BaseSubscriptionRequestType addEventTypes(string $eventTypes) */ class BaseSubscriptionRequestType extends Type { @@ -84,6 +82,27 @@ public function setFolderIds(NonEmptyArrayOfBaseFolderIdsType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return BaseSubscriptionRequestType + */ + public function addEventTypes($value) + { + $value = $this->castValueIfNeeded("eventTypes", $value); + + if ($this->eventTypes === null) { + $this->eventTypes = array(); + } + + if (!is_array($this->eventTypes)) { + $this->eventTypes = array($this->eventTypes); + } + + $this->eventTypes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/CalendarItemType.php b/src/API/Type/CalendarItemType.php index bcf5ea09..c61cb06a 100644 --- a/src/API/Type/CalendarItemType.php +++ b/src/API/Type/CalendarItemType.php @@ -7,12 +7,6 @@ * * * XSD Type: CalendarItemType - * - * @method CalendarItemType addRequiredAttendees(AttendeeType $requiredAttendees) - * @method CalendarItemType addOptionalAttendees(AttendeeType $optionalAttendees) - * @method CalendarItemType addResources(AttendeeType $resources) - * @method CalendarItemType addModifiedOccurrences(OccurrenceInfoType $modifiedOccurrences) - * @method CalendarItemType addDeletedOccurrences(DeletedOccurrenceInfoType $deletedOccurrences) */ class CalendarItemType extends ItemType { @@ -655,6 +649,27 @@ public function setOrganizer(SingleRecipientType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttendeeType + * @return CalendarItemType + */ + public function addRequiredAttendees(AttendeeType $value) + { + $value = $this->castValueIfNeeded("requiredAttendees", $value); + + if ($this->requiredAttendees === null) { + $this->requiredAttendees = array(); + } + + if (!is_array($this->requiredAttendees)) { + $this->requiredAttendees = array($this->requiredAttendees); + } + + $this->requiredAttendees[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttendeeType[] @@ -675,6 +690,27 @@ public function setRequiredAttendees(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttendeeType + * @return CalendarItemType + */ + public function addOptionalAttendees(AttendeeType $value) + { + $value = $this->castValueIfNeeded("optionalAttendees", $value); + + if ($this->optionalAttendees === null) { + $this->optionalAttendees = array(); + } + + if (!is_array($this->optionalAttendees)) { + $this->optionalAttendees = array($this->optionalAttendees); + } + + $this->optionalAttendees[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttendeeType[] @@ -695,6 +731,27 @@ public function setOptionalAttendees(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttendeeType + * @return CalendarItemType + */ + public function addResources(AttendeeType $value) + { + $value = $this->castValueIfNeeded("resources", $value); + + if ($this->resources === null) { + $this->resources = array(); + } + + if (!is_array($this->resources)) { + $this->resources = array($this->resources); + } + + $this->resources[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttendeeType[] @@ -955,6 +1012,27 @@ public function setLastOccurrence(OccurrenceInfoType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value OccurrenceInfoType + * @return CalendarItemType + */ + public function addModifiedOccurrences(OccurrenceInfoType $value) + { + $value = $this->castValueIfNeeded("modifiedOccurrences", $value); + + if ($this->modifiedOccurrences === null) { + $this->modifiedOccurrences = array(); + } + + if (!is_array($this->modifiedOccurrences)) { + $this->modifiedOccurrences = array($this->modifiedOccurrences); + } + + $this->modifiedOccurrences[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return OccurrenceInfoType[] @@ -975,6 +1053,27 @@ public function setModifiedOccurrences(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeletedOccurrenceInfoType + * @return CalendarItemType + */ + public function addDeletedOccurrences(DeletedOccurrenceInfoType $value) + { + $value = $this->castValueIfNeeded("deletedOccurrences", $value); + + if ($this->deletedOccurrences === null) { + $this->deletedOccurrences = array(); + } + + if (!is_array($this->deletedOccurrences)) { + $this->deletedOccurrences = array($this->deletedOccurrences); + } + + $this->deletedOccurrences[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeletedOccurrenceInfoType[] diff --git a/src/API/Type/CalendarPermissionSetType.php b/src/API/Type/CalendarPermissionSetType.php index 6b6cc242..ca47eb58 100644 --- a/src/API/Type/CalendarPermissionSetType.php +++ b/src/API/Type/CalendarPermissionSetType.php @@ -9,9 +9,6 @@ * * The set of permissions on a folder * XSD Type: CalendarPermissionSetType - * - * @method CalendarPermissionSetType addCalendarPermissions(CalendarPermissionType $calendarPermissions) - * @method CalendarPermissionSetType addUnknownEntries(string $unknownEntries) */ class CalendarPermissionSetType extends Type { @@ -26,6 +23,27 @@ class CalendarPermissionSetType extends Type */ protected $unknownEntries = null; + /** + * @autogenerated This method is safe to replace + * @param $value CalendarPermissionType + * @return CalendarPermissionSetType + */ + public function addCalendarPermissions(CalendarPermissionType $value) + { + $value = $this->castValueIfNeeded("calendarPermissions", $value); + + if ($this->calendarPermissions === null) { + $this->calendarPermissions = array(); + } + + if (!is_array($this->calendarPermissions)) { + $this->calendarPermissions = array($this->calendarPermissions); + } + + $this->calendarPermissions[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CalendarPermissionType[] @@ -46,6 +64,27 @@ public function setCalendarPermissions(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return CalendarPermissionSetType + */ + public function addUnknownEntries($value) + { + $value = $this->castValueIfNeeded("unknownEntries", $value); + + if ($this->unknownEntries === null) { + $this->unknownEntries = array(); + } + + if (!is_array($this->unknownEntries)) { + $this->unknownEntries = array($this->unknownEntries); + } + + $this->unknownEntries[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/ChangeDescriptionType.php b/src/API/Type/ChangeDescriptionType.php index 58abbd9c..a5c0b4f8 100644 --- a/src/API/Type/ChangeDescriptionType.php +++ b/src/API/Type/ChangeDescriptionType.php @@ -9,10 +9,6 @@ * * * XSD Type: ChangeDescriptionType - * - * @method ChangeDescriptionType addFieldURI(FieldURI $fieldURI) - * @method ChangeDescriptionType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method ChangeDescriptionType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class ChangeDescriptionType extends Type { @@ -32,6 +28,27 @@ class ChangeDescriptionType extends Type */ protected $extendedFieldURI = null; + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return ChangeDescriptionType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -52,6 +69,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return ChangeDescriptionType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -72,6 +110,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return ChangeDescriptionType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/ContactItemType.php b/src/API/Type/ContactItemType.php index 221e7be8..1be5820b 100644 --- a/src/API/Type/ContactItemType.php +++ b/src/API/Type/ContactItemType.php @@ -7,16 +7,6 @@ * * * XSD Type: ContactItemType - * - * @method ContactItemType addEmailAddresses(EmailAddressDictionaryEntryType $emailAddresses) - * @method ContactItemType addPhysicalAddresses(PhysicalAddressDictionaryEntryType $physicalAddresses) - * @method ContactItemType addPhoneNumbers(PhoneNumberDictionaryEntryType $phoneNumbers) - * @method ContactItemType addChildren(string $children) - * @method ContactItemType addCompanies(string $companies) - * @method ContactItemType addImAddresses(ImAddressDictionaryEntryType $imAddresses) - * @method ContactItemType addUserSMIMECertificate(string $userSMIMECertificate) - * @method ContactItemType addMSExchangeCertificate(string $mSExchangeCertificate) - * @method ContactItemType addDirectReports(EmailAddressType $directReports) */ class ContactItemType extends ItemType { @@ -416,6 +406,27 @@ public function setCompanyName($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressDictionaryEntryType + * @return ContactItemType + */ + public function addEmailAddresses(EmailAddressDictionaryEntryType $value) + { + $value = $this->castValueIfNeeded("emailAddresses", $value); + + if ($this->emailAddresses === null) { + $this->emailAddresses = array(); + } + + if (!is_array($this->emailAddresses)) { + $this->emailAddresses = array($this->emailAddresses); + } + + $this->emailAddresses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressDictionaryEntryType[] @@ -436,6 +447,27 @@ public function setEmailAddresses(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PhysicalAddressDictionaryEntryType + * @return ContactItemType + */ + public function addPhysicalAddresses(PhysicalAddressDictionaryEntryType $value) + { + $value = $this->castValueIfNeeded("physicalAddresses", $value); + + if ($this->physicalAddresses === null) { + $this->physicalAddresses = array(); + } + + if (!is_array($this->physicalAddresses)) { + $this->physicalAddresses = array($this->physicalAddresses); + } + + $this->physicalAddresses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PhysicalAddressDictionaryEntryType[] @@ -456,6 +488,27 @@ public function setPhysicalAddresses(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PhoneNumberDictionaryEntryType + * @return ContactItemType + */ + public function addPhoneNumbers(PhoneNumberDictionaryEntryType $value) + { + $value = $this->castValueIfNeeded("phoneNumbers", $value); + + if ($this->phoneNumbers === null) { + $this->phoneNumbers = array(); + } + + if (!is_array($this->phoneNumbers)) { + $this->phoneNumbers = array($this->phoneNumbers); + } + + $this->phoneNumbers[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PhoneNumberDictionaryEntryType[] @@ -536,6 +589,27 @@ public function setBusinessHomePage($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ContactItemType + */ + public function addChildren($value) + { + $value = $this->castValueIfNeeded("children", $value); + + if ($this->children === null) { + $this->children = array(); + } + + if (!is_array($this->children)) { + $this->children = array($this->children); + } + + $this->children[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -556,6 +630,27 @@ public function setChildren(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ContactItemType + */ + public function addCompanies($value) + { + $value = $this->castValueIfNeeded("companies", $value); + + if ($this->companies === null) { + $this->companies = array(); + } + + if (!is_array($this->companies)) { + $this->companies = array($this->companies); + } + + $this->companies[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -636,6 +731,27 @@ public function setGeneration($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ImAddressDictionaryEntryType + * @return ContactItemType + */ + public function addImAddresses(ImAddressDictionaryEntryType $value) + { + $value = $this->castValueIfNeeded("imAddresses", $value); + + if ($this->imAddresses === null) { + $this->imAddresses = array(); + } + + if (!is_array($this->imAddresses)) { + $this->imAddresses = array($this->imAddresses); + } + + $this->imAddresses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ImAddressDictionaryEntryType[] @@ -985,6 +1101,27 @@ public function setPhoto($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ContactItemType + */ + public function addUserSMIMECertificate($value) + { + $value = $this->castValueIfNeeded("userSMIMECertificate", $value); + + if ($this->userSMIMECertificate === null) { + $this->userSMIMECertificate = array(); + } + + if (!is_array($this->userSMIMECertificate)) { + $this->userSMIMECertificate = array($this->userSMIMECertificate); + } + + $this->userSMIMECertificate[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -1005,6 +1142,27 @@ public function setUserSMIMECertificate(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ContactItemType + */ + public function addMSExchangeCertificate($value) + { + $value = $this->castValueIfNeeded("mSExchangeCertificate", $value); + + if ($this->mSExchangeCertificate === null) { + $this->mSExchangeCertificate = array(); + } + + if (!is_array($this->mSExchangeCertificate)) { + $this->mSExchangeCertificate = array($this->mSExchangeCertificate); + } + + $this->mSExchangeCertificate[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -1065,6 +1223,27 @@ public function setManagerMailbox(SingleRecipientType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return ContactItemType + */ + public function addDirectReports(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("directReports", $value); + + if ($this->directReports === null) { + $this->directReports = array(); + } + + if (!is_array($this->directReports)) { + $this->directReports = array($this->directReports); + } + + $this->directReports[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] diff --git a/src/API/Type/ContainsExpressionType.php b/src/API/Type/ContainsExpressionType.php index 91a9645d..5c7ed64b 100644 --- a/src/API/Type/ContainsExpressionType.php +++ b/src/API/Type/ContainsExpressionType.php @@ -7,10 +7,6 @@ * * * XSD Type: ContainsExpressionType - * - * @method ContainsExpressionType addFieldURI(FieldURI $fieldURI) - * @method ContainsExpressionType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method ContainsExpressionType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class ContainsExpressionType extends SearchExpressionType { @@ -85,6 +81,27 @@ public function setContainmentComparison($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return ContainsExpressionType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -105,6 +122,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return ContainsExpressionType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -125,6 +163,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return ContainsExpressionType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/ConversationActionType.php b/src/API/Type/ConversationActionType.php index 2eadc15c..0cd2eb9a 100644 --- a/src/API/Type/ConversationActionType.php +++ b/src/API/Type/ConversationActionType.php @@ -9,8 +9,6 @@ * * * XSD Type: ConversationActionType - * - * @method ConversationActionType addCategories(string $categories) */ class ConversationActionType extends Type { @@ -198,6 +196,27 @@ public function setDestinationFolderId(TargetFolderIdType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationActionType + */ + public function addCategories($value) + { + $value = $this->castValueIfNeeded("categories", $value); + + if ($this->categories === null) { + $this->categories = array(); + } + + if (!is_array($this->categories)) { + $this->categories = array($this->categories); + } + + $this->categories[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/ConversationType.php b/src/API/Type/ConversationType.php index 0ca1b15a..bc690382 100644 --- a/src/API/Type/ConversationType.php +++ b/src/API/Type/ConversationType.php @@ -9,17 +9,6 @@ * * * XSD Type: ConversationType - * - * @method ConversationType addUniqueRecipients(string $uniqueRecipients) - * @method ConversationType addGlobalUniqueRecipients(string $globalUniqueRecipients) - * @method ConversationType addUniqueUnreadSenders(string $uniqueUnreadSenders) - * @method ConversationType addGlobalUniqueUnreadSenders(string $globalUniqueUnreadSenders) - * @method ConversationType addUniqueSenders(string $uniqueSenders) - * @method ConversationType addGlobalUniqueSenders(string $globalUniqueSenders) - * @method ConversationType addCategories(string $categories) - * @method ConversationType addGlobalCategories(string $globalCategories) - * @method ConversationType addItemClasses(string $itemClasses) - * @method ConversationType addGlobalItemClasses(string $globalItemClasses) */ class ConversationType extends Type { @@ -209,6 +198,27 @@ public function setConversationTopic($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addUniqueRecipients($value) + { + $value = $this->castValueIfNeeded("uniqueRecipients", $value); + + if ($this->uniqueRecipients === null) { + $this->uniqueRecipients = array(); + } + + if (!is_array($this->uniqueRecipients)) { + $this->uniqueRecipients = array($this->uniqueRecipients); + } + + $this->uniqueRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -229,6 +239,27 @@ public function setUniqueRecipients(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addGlobalUniqueRecipients($value) + { + $value = $this->castValueIfNeeded("globalUniqueRecipients", $value); + + if ($this->globalUniqueRecipients === null) { + $this->globalUniqueRecipients = array(); + } + + if (!is_array($this->globalUniqueRecipients)) { + $this->globalUniqueRecipients = array($this->globalUniqueRecipients); + } + + $this->globalUniqueRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -249,6 +280,27 @@ public function setGlobalUniqueRecipients(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addUniqueUnreadSenders($value) + { + $value = $this->castValueIfNeeded("uniqueUnreadSenders", $value); + + if ($this->uniqueUnreadSenders === null) { + $this->uniqueUnreadSenders = array(); + } + + if (!is_array($this->uniqueUnreadSenders)) { + $this->uniqueUnreadSenders = array($this->uniqueUnreadSenders); + } + + $this->uniqueUnreadSenders[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -269,6 +321,27 @@ public function setUniqueUnreadSenders(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addGlobalUniqueUnreadSenders($value) + { + $value = $this->castValueIfNeeded("globalUniqueUnreadSenders", $value); + + if ($this->globalUniqueUnreadSenders === null) { + $this->globalUniqueUnreadSenders = array(); + } + + if (!is_array($this->globalUniqueUnreadSenders)) { + $this->globalUniqueUnreadSenders = array($this->globalUniqueUnreadSenders); + } + + $this->globalUniqueUnreadSenders[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -289,6 +362,27 @@ public function setGlobalUniqueUnreadSenders(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addUniqueSenders($value) + { + $value = $this->castValueIfNeeded("uniqueSenders", $value); + + if ($this->uniqueSenders === null) { + $this->uniqueSenders = array(); + } + + if (!is_array($this->uniqueSenders)) { + $this->uniqueSenders = array($this->uniqueSenders); + } + + $this->uniqueSenders[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -309,6 +403,27 @@ public function setUniqueSenders(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addGlobalUniqueSenders($value) + { + $value = $this->castValueIfNeeded("globalUniqueSenders", $value); + + if ($this->globalUniqueSenders === null) { + $this->globalUniqueSenders = array(); + } + + if (!is_array($this->globalUniqueSenders)) { + $this->globalUniqueSenders = array($this->globalUniqueSenders); + } + + $this->globalUniqueSenders[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -369,6 +484,27 @@ public function setGlobalLastDeliveryTime(\DateTime|string $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addCategories($value) + { + $value = $this->castValueIfNeeded("categories", $value); + + if ($this->categories === null) { + $this->categories = array(); + } + + if (!is_array($this->categories)) { + $this->categories = array($this->categories); + } + + $this->categories[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -389,6 +525,27 @@ public function setCategories(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addGlobalCategories($value) + { + $value = $this->castValueIfNeeded("globalCategories", $value); + + if ($this->globalCategories === null) { + $this->globalCategories = array(); + } + + if (!is_array($this->globalCategories)) { + $this->globalCategories = array($this->globalCategories); + } + + $this->globalCategories[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -627,6 +784,27 @@ public function setGlobalSize($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addItemClasses($value) + { + $value = $this->castValueIfNeeded("itemClasses", $value); + + if ($this->itemClasses === null) { + $this->itemClasses = array(); + } + + if (!is_array($this->itemClasses)) { + $this->itemClasses = array($this->itemClasses); + } + + $this->itemClasses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -647,6 +825,27 @@ public function setItemClasses(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ConversationType + */ + public function addGlobalItemClasses($value) + { + $value = $this->castValueIfNeeded("globalItemClasses", $value); + + if ($this->globalItemClasses === null) { + $this->globalItemClasses = array(); + } + + if (!is_array($this->globalItemClasses)) { + $this->globalItemClasses = array($this->globalItemClasses); + } + + $this->globalItemClasses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/DistributionListType.php b/src/API/Type/DistributionListType.php index d29f51dd..9d2af59a 100644 --- a/src/API/Type/DistributionListType.php +++ b/src/API/Type/DistributionListType.php @@ -7,8 +7,6 @@ * * * XSD Type: DistributionListType - * - * @method DistributionListType addMembers(MemberType $members) */ class DistributionListType extends ItemType { @@ -93,6 +91,27 @@ public function setContactSource($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MemberType + * @return DistributionListType + */ + public function addMembers(MemberType $value) + { + $value = $this->castValueIfNeeded("members", $value); + + if ($this->members === null) { + $this->members = array(); + } + + if (!is_array($this->members)) { + $this->members = array($this->members); + } + + $this->members[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MemberType[] diff --git a/src/API/Type/ExcludesType.php b/src/API/Type/ExcludesType.php index 23b17c48..4b98b1c8 100644 --- a/src/API/Type/ExcludesType.php +++ b/src/API/Type/ExcludesType.php @@ -7,10 +7,6 @@ * * * XSD Type: ExcludesType - * - * @method ExcludesType addFieldURI(FieldURI $fieldURI) - * @method ExcludesType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method ExcludesType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class ExcludesType extends SearchExpressionType { @@ -35,6 +31,27 @@ class ExcludesType extends SearchExpressionType */ protected $bitmask = null; + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return ExcludesType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -55,6 +72,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return ExcludesType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -75,6 +113,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return ExcludesType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/ExistsType.php b/src/API/Type/ExistsType.php index 8171bf74..0ea6b29f 100644 --- a/src/API/Type/ExistsType.php +++ b/src/API/Type/ExistsType.php @@ -7,10 +7,6 @@ * * * XSD Type: ExistsType - * - * @method ExistsType addFieldURI(FieldURI $fieldURI) - * @method ExistsType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method ExistsType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class ExistsType extends SearchExpressionType { @@ -30,6 +26,27 @@ class ExistsType extends SearchExpressionType */ protected $extendedFieldURI = null; + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return ExistsType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -50,6 +67,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return ExistsType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -70,6 +108,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return ExistsType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/ExtendedPropertyType.php b/src/API/Type/ExtendedPropertyType.php index 55b3413e..91d66d63 100644 --- a/src/API/Type/ExtendedPropertyType.php +++ b/src/API/Type/ExtendedPropertyType.php @@ -7,11 +7,10 @@ /** * Class representing ExtendedPropertyType * - * Represents an extended property instance (both its path identifier along with its + * Represents an extended property instance (both its path identifier along with + * its * associated value). * XSD Type: ExtendedPropertyType - * - * @method ExtendedPropertyType addValues(string $values) */ class ExtendedPropertyType extends Type { @@ -71,6 +70,27 @@ public function setValue($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ExtendedPropertyType + */ + public function addValues($value) + { + $value = $this->castValueIfNeeded("values", $value); + + if ($this->values === null) { + $this->values = array(); + } + + if (!is_array($this->values)) { + $this->values = array($this->values); + } + + $this->values[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/FieldOrderType.php b/src/API/Type/FieldOrderType.php index 86ac3ad5..6aefdbca 100644 --- a/src/API/Type/FieldOrderType.php +++ b/src/API/Type/FieldOrderType.php @@ -9,10 +9,6 @@ * * * XSD Type: FieldOrderType - * - * @method FieldOrderType addFieldURI(FieldURI $fieldURI) - * @method FieldOrderType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method FieldOrderType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class FieldOrderType extends Type { @@ -57,6 +53,27 @@ public function setOrder($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return FieldOrderType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -77,6 +94,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return FieldOrderType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -97,6 +135,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return FieldOrderType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/FindItemParentType.php b/src/API/Type/FindItemParentType.php index 94245088..5c0d1189 100644 --- a/src/API/Type/FindItemParentType.php +++ b/src/API/Type/FindItemParentType.php @@ -14,8 +14,6 @@ * * * XSD Type: FindItemParentType - * - * @method FindItemParentType addGroups(GroupedItemsType $groups) */ class FindItemParentType extends Type implements Countable, ArrayAccess, IteratorAggregate { @@ -262,6 +260,27 @@ public function setItems(ArrayOfRealItemsType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value GroupedItemsType + * @return FindItemParentType + */ + public function addGroups(GroupedItemsType $value) + { + $value = $this->castValueIfNeeded("groups", $value); + + if ($this->groups === null) { + $this->groups = array(); + } + + if (!is_array($this->groups)) { + $this->groups = array($this->groups); + } + + $this->groups[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return GroupedItemsType[] diff --git a/src/API/Type/FindMessageTrackingSearchResultType.php b/src/API/Type/FindMessageTrackingSearchResultType.php index 778e94eb..98323b12 100644 --- a/src/API/Type/FindMessageTrackingSearchResultType.php +++ b/src/API/Type/FindMessageTrackingSearchResultType.php @@ -9,9 +9,6 @@ * * * XSD Type: FindMessageTrackingSearchResultType - * - * @method FindMessageTrackingSearchResultType addRecipients(EmailAddressType $recipients) - * @method FindMessageTrackingSearchResultType addProperties(TrackingPropertyType $properties) */ class FindMessageTrackingSearchResultType extends Type { @@ -125,6 +122,27 @@ public function setPurportedSender(EmailAddressType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return FindMessageTrackingSearchResultType + */ + public function addRecipients(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("recipients", $value); + + if ($this->recipients === null) { + $this->recipients = array(); + } + + if (!is_array($this->recipients)) { + $this->recipients = array($this->recipients); + } + + $this->recipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] @@ -225,6 +243,27 @@ public function setFirstHopServer($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TrackingPropertyType + * @return FindMessageTrackingSearchResultType + */ + public function addProperties(TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TrackingPropertyType[] diff --git a/src/API/Type/FreeBusyViewOptionsType.php b/src/API/Type/FreeBusyViewOptionsType.php index 00d60ff7..0f6e8294 100644 --- a/src/API/Type/FreeBusyViewOptionsType.php +++ b/src/API/Type/FreeBusyViewOptionsType.php @@ -9,8 +9,6 @@ * * * XSD Type: FreeBusyViewOptionsType - * - * @method FreeBusyViewOptionsType addRequestedView(string $requestedView) */ class FreeBusyViewOptionsType extends Type { @@ -70,6 +68,27 @@ public function setMergedFreeBusyIntervalInMinutes($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FreeBusyViewOptionsType + */ + public function addRequestedView($value) + { + $value = $this->castValueIfNeeded("requestedView", $value); + + if ($this->requestedView === null) { + $this->requestedView = array(); + } + + if (!is_array($this->requestedView)) { + $this->requestedView = array($this->requestedView); + } + + $this->requestedView[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/FreeBusyViewType.php b/src/API/Type/FreeBusyViewType.php index a4e0083d..e6e276fc 100644 --- a/src/API/Type/FreeBusyViewType.php +++ b/src/API/Type/FreeBusyViewType.php @@ -9,9 +9,6 @@ * * * XSD Type: FreeBusyView - * - * @method FreeBusyViewType addFreeBusyViewType(string $freeBusyViewType) - * @method FreeBusyViewType addCalendarEventArray(CalendarEventType $calendarEventArray) */ class FreeBusyViewType extends Type { @@ -36,6 +33,27 @@ class FreeBusyViewType extends Type */ protected $workingHours = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return FreeBusyViewType + */ + public function addFreeBusyViewType($value) + { + $value = $this->castValueIfNeeded("freeBusyViewType", $value); + + if ($this->freeBusyViewType === null) { + $this->freeBusyViewType = array(); + } + + if (!is_array($this->freeBusyViewType)) { + $this->freeBusyViewType = array($this->freeBusyViewType); + } + + $this->freeBusyViewType[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -76,6 +94,27 @@ public function setMergedFreeBusy($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CalendarEventType + * @return FreeBusyViewType + */ + public function addCalendarEventArray(CalendarEventType $value) + { + $value = $this->castValueIfNeeded("calendarEventArray", $value); + + if ($this->calendarEventArray === null) { + $this->calendarEventArray = array(); + } + + if (!is_array($this->calendarEventArray)) { + $this->calendarEventArray = array($this->calendarEventArray); + } + + $this->calendarEventArray[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CalendarEventType[] diff --git a/src/API/Type/ItemType.php b/src/API/Type/ItemType.php index b56c8ad5..10704bf7 100644 --- a/src/API/Type/ItemType.php +++ b/src/API/Type/ItemType.php @@ -9,10 +9,6 @@ * * * XSD Type: ItemType - * - * @method ItemType addCategories(string $categories) - * @method ItemType addInternetMessageHeaders(InternetHeaderType $internetMessageHeaders) - * @method ItemType addExtendedProperty(ExtendedPropertyType $extendedProperty) */ class ItemType extends Type { @@ -420,6 +416,27 @@ public function setSize($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ItemType + */ + public function addCategories($value) + { + $value = $this->castValueIfNeeded("categories", $value); + + if ($this->categories === null) { + $this->categories = array(); + } + + if (!is_array($this->categories)) { + $this->categories = array($this->categories); + } + + $this->categories[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -625,6 +642,27 @@ public function setIsUnmodified($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value InternetHeaderType + * @return ItemType + */ + public function addInternetMessageHeaders(InternetHeaderType $value) + { + $value = $this->castValueIfNeeded("internetMessageHeaders", $value); + + if ($this->internetMessageHeaders === null) { + $this->internetMessageHeaders = array(); + } + + if (!is_array($this->internetMessageHeaders)) { + $this->internetMessageHeaders = array($this->internetMessageHeaders); + } + + $this->internetMessageHeaders[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return InternetHeaderType[] @@ -843,6 +881,27 @@ public function setHasAttachments($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedPropertyType + * @return ItemType + */ + public function addExtendedProperty(ExtendedPropertyType $value) + { + $value = $this->castValueIfNeeded("extendedProperty", $value); + + if ($this->extendedProperty === null) { + $this->extendedProperty = array(); + } + + if (!is_array($this->extendedProperty)) { + $this->extendedProperty = array($this->extendedProperty); + } + + $this->extendedProperty[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedPropertyType[] diff --git a/src/API/Type/MailTipsServiceConfigurationType.php b/src/API/Type/MailTipsServiceConfigurationType.php index 9fc20d7a..f0e106ce 100644 --- a/src/API/Type/MailTipsServiceConfigurationType.php +++ b/src/API/Type/MailTipsServiceConfigurationType.php @@ -7,8 +7,6 @@ * * * XSD Type: MailTipsServiceConfiguration - * - * @method MailTipsServiceConfigurationType addInternalDomains(SmtpDomainType $internalDomains) */ class MailTipsServiceConfigurationType extends ServiceConfigurationType { @@ -161,6 +159,27 @@ public function setShowExternalRecipientCount($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SmtpDomainType + * @return MailTipsServiceConfigurationType + */ + public function addInternalDomains(SmtpDomainType $value) + { + $value = $this->castValueIfNeeded("internalDomains", $value); + + if ($this->internalDomains === null) { + $this->internalDomains = array(); + } + + if (!is_array($this->internalDomains)) { + $this->internalDomains = array($this->internalDomains); + } + + $this->internalDomains[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SmtpDomainType[] diff --git a/src/API/Type/MailTipsType.php b/src/API/Type/MailTipsType.php index 611074d6..fbba9a39 100644 --- a/src/API/Type/MailTipsType.php +++ b/src/API/Type/MailTipsType.php @@ -9,8 +9,6 @@ * * * XSD Type: MailTips - * - * @method MailTipsType addPendingMailTips(string $pendingMailTips) */ class MailTipsType extends Type { @@ -90,6 +88,27 @@ public function setRecipientAddress(EmailAddressType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return MailTipsType + */ + public function addPendingMailTips($value) + { + $value = $this->castValueIfNeeded("pendingMailTips", $value); + + if ($this->pendingMailTips === null) { + $this->pendingMailTips = array(); + } + + if (!is_array($this->pendingMailTips)) { + $this->pendingMailTips = array($this->pendingMailTips); + } + + $this->pendingMailTips[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/MeetingRequestMessageType.php b/src/API/Type/MeetingRequestMessageType.php index 3234d240..ac02c03a 100644 --- a/src/API/Type/MeetingRequestMessageType.php +++ b/src/API/Type/MeetingRequestMessageType.php @@ -7,12 +7,6 @@ * * * XSD Type: MeetingRequestMessageType - * - * @method MeetingRequestMessageType addRequiredAttendees(AttendeeType $requiredAttendees) - * @method MeetingRequestMessageType addOptionalAttendees(AttendeeType $optionalAttendees) - * @method MeetingRequestMessageType addResources(AttendeeType $resources) - * @method MeetingRequestMessageType addModifiedOccurrences(OccurrenceInfoType $modifiedOccurrences) - * @method MeetingRequestMessageType addDeletedOccurrences(DeletedOccurrenceInfoType $deletedOccurrences) */ class MeetingRequestMessageType extends MeetingMessageType { @@ -594,6 +588,27 @@ public function setOrganizer(SingleRecipientType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttendeeType + * @return MeetingRequestMessageType + */ + public function addRequiredAttendees(AttendeeType $value) + { + $value = $this->castValueIfNeeded("requiredAttendees", $value); + + if ($this->requiredAttendees === null) { + $this->requiredAttendees = array(); + } + + if (!is_array($this->requiredAttendees)) { + $this->requiredAttendees = array($this->requiredAttendees); + } + + $this->requiredAttendees[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttendeeType[] @@ -614,6 +629,27 @@ public function setRequiredAttendees(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttendeeType + * @return MeetingRequestMessageType + */ + public function addOptionalAttendees(AttendeeType $value) + { + $value = $this->castValueIfNeeded("optionalAttendees", $value); + + if ($this->optionalAttendees === null) { + $this->optionalAttendees = array(); + } + + if (!is_array($this->optionalAttendees)) { + $this->optionalAttendees = array($this->optionalAttendees); + } + + $this->optionalAttendees[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttendeeType[] @@ -634,6 +670,27 @@ public function setOptionalAttendees(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AttendeeType + * @return MeetingRequestMessageType + */ + public function addResources(AttendeeType $value) + { + $value = $this->castValueIfNeeded("resources", $value); + + if ($this->resources === null) { + $this->resources = array(); + } + + if (!is_array($this->resources)) { + $this->resources = array($this->resources); + } + + $this->resources[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AttendeeType[] @@ -894,6 +951,27 @@ public function setLastOccurrence(OccurrenceInfoType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value OccurrenceInfoType + * @return MeetingRequestMessageType + */ + public function addModifiedOccurrences(OccurrenceInfoType $value) + { + $value = $this->castValueIfNeeded("modifiedOccurrences", $value); + + if ($this->modifiedOccurrences === null) { + $this->modifiedOccurrences = array(); + } + + if (!is_array($this->modifiedOccurrences)) { + $this->modifiedOccurrences = array($this->modifiedOccurrences); + } + + $this->modifiedOccurrences[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return OccurrenceInfoType[] @@ -914,6 +992,27 @@ public function setModifiedOccurrences(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeletedOccurrenceInfoType + * @return MeetingRequestMessageType + */ + public function addDeletedOccurrences(DeletedOccurrenceInfoType $value) + { + $value = $this->castValueIfNeeded("deletedOccurrences", $value); + + if ($this->deletedOccurrences === null) { + $this->deletedOccurrences = array(); + } + + if (!is_array($this->deletedOccurrences)) { + $this->deletedOccurrences = array($this->deletedOccurrences); + } + + $this->deletedOccurrences[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeletedOccurrenceInfoType[] diff --git a/src/API/Type/MessageTrackingReportType.php b/src/API/Type/MessageTrackingReportType.php index 7497c12c..ee0f27d0 100644 --- a/src/API/Type/MessageTrackingReportType.php +++ b/src/API/Type/MessageTrackingReportType.php @@ -9,10 +9,6 @@ * * * XSD Type: MessageTrackingReportType - * - * @method MessageTrackingReportType addOriginalRecipients(EmailAddressType $originalRecipients) - * @method MessageTrackingReportType addRecipientTrackingEvents(RecipientTrackingEventType $recipientTrackingEvents) - * @method MessageTrackingReportType addProperties(TrackingPropertyType $properties) */ class MessageTrackingReportType extends Type { @@ -136,6 +132,27 @@ public function setSubmitTime(\DateTime|string $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return MessageTrackingReportType + */ + public function addOriginalRecipients(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("originalRecipients", $value); + + if ($this->originalRecipients === null) { + $this->originalRecipients = array(); + } + + if (!is_array($this->originalRecipients)) { + $this->originalRecipients = array($this->originalRecipients); + } + + $this->originalRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] @@ -156,6 +173,27 @@ public function setOriginalRecipients(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RecipientTrackingEventType + * @return MessageTrackingReportType + */ + public function addRecipientTrackingEvents(RecipientTrackingEventType $value) + { + $value = $this->castValueIfNeeded("recipientTrackingEvents", $value); + + if ($this->recipientTrackingEvents === null) { + $this->recipientTrackingEvents = array(); + } + + if (!is_array($this->recipientTrackingEvents)) { + $this->recipientTrackingEvents = array($this->recipientTrackingEvents); + } + + $this->recipientTrackingEvents[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RecipientTrackingEventType[] @@ -176,6 +214,27 @@ public function setRecipientTrackingEvents(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TrackingPropertyType + * @return MessageTrackingReportType + */ + public function addProperties(TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TrackingPropertyType[] diff --git a/src/API/Type/MessageType.php b/src/API/Type/MessageType.php index 0aebc0f5..8887c15b 100644 --- a/src/API/Type/MessageType.php +++ b/src/API/Type/MessageType.php @@ -10,11 +10,6 @@ * * * XSD Type: MessageType - * - * @method MessageType addToRecipients(EmailAddressType $toRecipients) - * @method MessageType addCcRecipients(EmailAddressType $ccRecipients) - * @method MessageType addBccRecipients(EmailAddressType $bccRecipients) - * @method MessageType addReplyTo(EmailAddressType $replyTo) */ class MessageType extends ItemType { diff --git a/src/API/Type/MultipleOperandBooleanExpressionType.php b/src/API/Type/MultipleOperandBooleanExpressionType.php index 2b4051fe..3fb610de 100644 --- a/src/API/Type/MultipleOperandBooleanExpressionType.php +++ b/src/API/Type/MultipleOperandBooleanExpressionType.php @@ -7,19 +7,6 @@ * * * XSD Type: MultipleOperandBooleanExpressionType - * - * @method MultipleOperandBooleanExpressionType addContains(Contains $contains) - * @method MultipleOperandBooleanExpressionType addExcludes(Excludes $excludes) - * @method MultipleOperandBooleanExpressionType addExists(Exists $exists) - * @method MultipleOperandBooleanExpressionType addIsEqualTo(IsEqualTo $isEqualTo) - * @method MultipleOperandBooleanExpressionType addIsNotEqualTo(IsNotEqualTo $isNotEqualTo) - * @method MultipleOperandBooleanExpressionType addIsGreaterThan(IsGreaterThan $isGreaterThan) - * @method MultipleOperandBooleanExpressionType addIsGreaterThanOrEqualTo(IsGreaterThanOrEqualTo $isGreaterThanOrEqualTo) - * @method MultipleOperandBooleanExpressionType addIsLessThan(IsLessThan $isLessThan) - * @method MultipleOperandBooleanExpressionType addIsLessThanOrEqualTo(IsLessThanOrEqualTo $isLessThanOrEqualTo) - * @method MultipleOperandBooleanExpressionType addAnd(AndElement $and) - * @method MultipleOperandBooleanExpressionType addNot(Not $not) - * @method MultipleOperandBooleanExpressionType addOr(OrElement $or) */ class MultipleOperandBooleanExpressionType extends SearchExpressionType { @@ -84,6 +71,27 @@ class MultipleOperandBooleanExpressionType extends SearchExpressionType */ protected $or = null; + /** + * @autogenerated This method is safe to replace + * @param $value Contains + * @return MultipleOperandBooleanExpressionType + */ + public function addContains(Contains $value) + { + $value = $this->castValueIfNeeded("contains", $value); + + if ($this->contains === null) { + $this->contains = array(); + } + + if (!is_array($this->contains)) { + $this->contains = array($this->contains); + } + + $this->contains[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Contains[] @@ -104,6 +112,27 @@ public function setContains(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Excludes + * @return MultipleOperandBooleanExpressionType + */ + public function addExcludes(Excludes $value) + { + $value = $this->castValueIfNeeded("excludes", $value); + + if ($this->excludes === null) { + $this->excludes = array(); + } + + if (!is_array($this->excludes)) { + $this->excludes = array($this->excludes); + } + + $this->excludes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Excludes[] @@ -124,6 +153,27 @@ public function setExcludes(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Exists + * @return MultipleOperandBooleanExpressionType + */ + public function addExists(Exists $value) + { + $value = $this->castValueIfNeeded("exists", $value); + + if ($this->exists === null) { + $this->exists = array(); + } + + if (!is_array($this->exists)) { + $this->exists = array($this->exists); + } + + $this->exists[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Exists[] @@ -144,6 +194,27 @@ public function setExists(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsEqualTo + * @return MultipleOperandBooleanExpressionType + */ + public function addIsEqualTo(IsEqualTo $value) + { + $value = $this->castValueIfNeeded("isEqualTo", $value); + + if ($this->isEqualTo === null) { + $this->isEqualTo = array(); + } + + if (!is_array($this->isEqualTo)) { + $this->isEqualTo = array($this->isEqualTo); + } + + $this->isEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsEqualTo[] @@ -164,6 +235,27 @@ public function setIsEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsNotEqualTo + * @return MultipleOperandBooleanExpressionType + */ + public function addIsNotEqualTo(IsNotEqualTo $value) + { + $value = $this->castValueIfNeeded("isNotEqualTo", $value); + + if ($this->isNotEqualTo === null) { + $this->isNotEqualTo = array(); + } + + if (!is_array($this->isNotEqualTo)) { + $this->isNotEqualTo = array($this->isNotEqualTo); + } + + $this->isNotEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsNotEqualTo[] @@ -184,6 +276,27 @@ public function setIsNotEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsGreaterThan + * @return MultipleOperandBooleanExpressionType + */ + public function addIsGreaterThan(IsGreaterThan $value) + { + $value = $this->castValueIfNeeded("isGreaterThan", $value); + + if ($this->isGreaterThan === null) { + $this->isGreaterThan = array(); + } + + if (!is_array($this->isGreaterThan)) { + $this->isGreaterThan = array($this->isGreaterThan); + } + + $this->isGreaterThan[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsGreaterThan[] @@ -204,6 +317,27 @@ public function setIsGreaterThan(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsGreaterThanOrEqualTo + * @return MultipleOperandBooleanExpressionType + */ + public function addIsGreaterThanOrEqualTo(IsGreaterThanOrEqualTo $value) + { + $value = $this->castValueIfNeeded("isGreaterThanOrEqualTo", $value); + + if ($this->isGreaterThanOrEqualTo === null) { + $this->isGreaterThanOrEqualTo = array(); + } + + if (!is_array($this->isGreaterThanOrEqualTo)) { + $this->isGreaterThanOrEqualTo = array($this->isGreaterThanOrEqualTo); + } + + $this->isGreaterThanOrEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsGreaterThanOrEqualTo[] @@ -224,6 +358,27 @@ public function setIsGreaterThanOrEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsLessThan + * @return MultipleOperandBooleanExpressionType + */ + public function addIsLessThan(IsLessThan $value) + { + $value = $this->castValueIfNeeded("isLessThan", $value); + + if ($this->isLessThan === null) { + $this->isLessThan = array(); + } + + if (!is_array($this->isLessThan)) { + $this->isLessThan = array($this->isLessThan); + } + + $this->isLessThan[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsLessThan[] @@ -244,6 +399,27 @@ public function setIsLessThan(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsLessThanOrEqualTo + * @return MultipleOperandBooleanExpressionType + */ + public function addIsLessThanOrEqualTo(IsLessThanOrEqualTo $value) + { + $value = $this->castValueIfNeeded("isLessThanOrEqualTo", $value); + + if ($this->isLessThanOrEqualTo === null) { + $this->isLessThanOrEqualTo = array(); + } + + if (!is_array($this->isLessThanOrEqualTo)) { + $this->isLessThanOrEqualTo = array($this->isLessThanOrEqualTo); + } + + $this->isLessThanOrEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsLessThanOrEqualTo[] @@ -264,6 +440,27 @@ public function setIsLessThanOrEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AndElement + * @return MultipleOperandBooleanExpressionType + */ + public function addAnd(AndElement $value) + { + $value = $this->castValueIfNeeded("and", $value); + + if ($this->and === null) { + $this->and = array(); + } + + if (!is_array($this->and)) { + $this->and = array($this->and); + } + + $this->and[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AndElement[] @@ -284,6 +481,27 @@ public function setAnd(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Not + * @return MultipleOperandBooleanExpressionType + */ + public function addNot(Not $value) + { + $value = $this->castValueIfNeeded("not", $value); + + if ($this->not === null) { + $this->not = array(); + } + + if (!is_array($this->not)) { + $this->not = array($this->not); + } + + $this->not[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Not[] @@ -304,6 +522,27 @@ public function setNot(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value OrElement + * @return MultipleOperandBooleanExpressionType + */ + public function addOr(OrElement $value) + { + $value = $this->castValueIfNeeded("or", $value); + + if ($this->or === null) { + $this->or = array(); + } + + if (!is_array($this->or)) { + $this->or = array($this->or); + } + + $this->or[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return OrElement[] diff --git a/src/API/Type/NonEmptyArrayOfAllItemsType.php b/src/API/Type/NonEmptyArrayOfAllItemsType.php index 3b0e9877..edeeaf64 100644 --- a/src/API/Type/NonEmptyArrayOfAllItemsType.php +++ b/src/API/Type/NonEmptyArrayOfAllItemsType.php @@ -9,29 +9,6 @@ * * * XSD Type: NonEmptyArrayOfAllItemsType - * - * @method NonEmptyArrayOfAllItemsType addItem(ItemType $item) - * @method NonEmptyArrayOfAllItemsType addMessage(MessageType $message) - * @method NonEmptyArrayOfAllItemsType addCalendarItem(CalendarItemType $calendarItem) - * @method NonEmptyArrayOfAllItemsType addContact(ContactItemType $contact) - * @method NonEmptyArrayOfAllItemsType addDistributionList(DistributionListType $distributionList) - * @method NonEmptyArrayOfAllItemsType addMeetingMessage(MeetingMessageType $meetingMessage) - * @method NonEmptyArrayOfAllItemsType addMeetingRequest(MeetingRequestMessageType $meetingRequest) - * @method NonEmptyArrayOfAllItemsType addMeetingResponse(MeetingResponseMessageType $meetingResponse) - * @method NonEmptyArrayOfAllItemsType addMeetingCancellation(MeetingCancellationMessageType $meetingCancellation) - * @method NonEmptyArrayOfAllItemsType addTask(TaskType $task) - * @method NonEmptyArrayOfAllItemsType addPostItem(PostItemType $postItem) - * @method NonEmptyArrayOfAllItemsType addReplyToItem(ReplyToItemType $replyToItem) - * @method NonEmptyArrayOfAllItemsType addForwardItem(ForwardItemType $forwardItem) - * @method NonEmptyArrayOfAllItemsType addReplyAllToItem(ReplyAllToItemType $replyAllToItem) - * @method NonEmptyArrayOfAllItemsType addAcceptItem(AcceptItemType $acceptItem) - * @method NonEmptyArrayOfAllItemsType addTentativelyAcceptItem(TentativelyAcceptItemType $tentativelyAcceptItem) - * @method NonEmptyArrayOfAllItemsType addDeclineItem(DeclineItemType $declineItem) - * @method NonEmptyArrayOfAllItemsType addCancelCalendarItem(CancelCalendarItemType $cancelCalendarItem) - * @method NonEmptyArrayOfAllItemsType addRemoveItem(RemoveItemType $removeItem) - * @method NonEmptyArrayOfAllItemsType addSuppressReadReceipt(SuppressReadReceiptType $suppressReadReceipt) - * @method NonEmptyArrayOfAllItemsType addPostReplyItem(PostReplyItemType $postReplyItem) - * @method NonEmptyArrayOfAllItemsType addAcceptSharingInvitation(AcceptSharingInvitationType $acceptSharingInvitation) */ class NonEmptyArrayOfAllItemsType extends Type { @@ -146,6 +123,27 @@ class NonEmptyArrayOfAllItemsType extends Type */ protected $acceptSharingInvitation = null; + /** + * @autogenerated This method is safe to replace + * @param $value ItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addItem(ItemType $value) + { + $value = $this->castValueIfNeeded("item", $value); + + if ($this->item === null) { + $this->item = array(); + } + + if (!is_array($this->item)) { + $this->item = array($this->item); + } + + $this->item[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemType[] @@ -166,6 +164,27 @@ public function setItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MessageType + * @return NonEmptyArrayOfAllItemsType + */ + public function addMessage(MessageType $value) + { + $value = $this->castValueIfNeeded("message", $value); + + if ($this->message === null) { + $this->message = array(); + } + + if (!is_array($this->message)) { + $this->message = array($this->message); + } + + $this->message[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MessageType[] @@ -186,6 +205,27 @@ public function setMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CalendarItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addCalendarItem(CalendarItemType $value) + { + $value = $this->castValueIfNeeded("calendarItem", $value); + + if ($this->calendarItem === null) { + $this->calendarItem = array(); + } + + if (!is_array($this->calendarItem)) { + $this->calendarItem = array($this->calendarItem); + } + + $this->calendarItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CalendarItemType[] @@ -206,6 +246,27 @@ public function setCalendarItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ContactItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addContact(ContactItemType $value) + { + $value = $this->castValueIfNeeded("contact", $value); + + if ($this->contact === null) { + $this->contact = array(); + } + + if (!is_array($this->contact)) { + $this->contact = array($this->contact); + } + + $this->contact[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ContactItemType[] @@ -226,6 +287,27 @@ public function setContact(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DistributionListType + * @return NonEmptyArrayOfAllItemsType + */ + public function addDistributionList(DistributionListType $value) + { + $value = $this->castValueIfNeeded("distributionList", $value); + + if ($this->distributionList === null) { + $this->distributionList = array(); + } + + if (!is_array($this->distributionList)) { + $this->distributionList = array($this->distributionList); + } + + $this->distributionList[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DistributionListType[] @@ -246,6 +328,27 @@ public function setDistributionList(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingMessageType + * @return NonEmptyArrayOfAllItemsType + */ + public function addMeetingMessage(MeetingMessageType $value) + { + $value = $this->castValueIfNeeded("meetingMessage", $value); + + if ($this->meetingMessage === null) { + $this->meetingMessage = array(); + } + + if (!is_array($this->meetingMessage)) { + $this->meetingMessage = array($this->meetingMessage); + } + + $this->meetingMessage[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingMessageType[] @@ -266,6 +369,27 @@ public function setMeetingMessage(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingRequestMessageType + * @return NonEmptyArrayOfAllItemsType + */ + public function addMeetingRequest(MeetingRequestMessageType $value) + { + $value = $this->castValueIfNeeded("meetingRequest", $value); + + if ($this->meetingRequest === null) { + $this->meetingRequest = array(); + } + + if (!is_array($this->meetingRequest)) { + $this->meetingRequest = array($this->meetingRequest); + } + + $this->meetingRequest[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingRequestMessageType[] @@ -286,6 +410,27 @@ public function setMeetingRequest(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingResponseMessageType + * @return NonEmptyArrayOfAllItemsType + */ + public function addMeetingResponse(MeetingResponseMessageType $value) + { + $value = $this->castValueIfNeeded("meetingResponse", $value); + + if ($this->meetingResponse === null) { + $this->meetingResponse = array(); + } + + if (!is_array($this->meetingResponse)) { + $this->meetingResponse = array($this->meetingResponse); + } + + $this->meetingResponse[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingResponseMessageType[] @@ -306,6 +451,27 @@ public function setMeetingResponse(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MeetingCancellationMessageType + * @return NonEmptyArrayOfAllItemsType + */ + public function addMeetingCancellation(MeetingCancellationMessageType $value) + { + $value = $this->castValueIfNeeded("meetingCancellation", $value); + + if ($this->meetingCancellation === null) { + $this->meetingCancellation = array(); + } + + if (!is_array($this->meetingCancellation)) { + $this->meetingCancellation = array($this->meetingCancellation); + } + + $this->meetingCancellation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MeetingCancellationMessageType[] @@ -326,6 +492,27 @@ public function setMeetingCancellation(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TaskType + * @return NonEmptyArrayOfAllItemsType + */ + public function addTask(TaskType $value) + { + $value = $this->castValueIfNeeded("task", $value); + + if ($this->task === null) { + $this->task = array(); + } + + if (!is_array($this->task)) { + $this->task = array($this->task); + } + + $this->task[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TaskType[] @@ -346,6 +533,27 @@ public function setTask(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PostItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addPostItem(PostItemType $value) + { + $value = $this->castValueIfNeeded("postItem", $value); + + if ($this->postItem === null) { + $this->postItem = array(); + } + + if (!is_array($this->postItem)) { + $this->postItem = array($this->postItem); + } + + $this->postItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PostItemType[] @@ -366,6 +574,27 @@ public function setPostItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ReplyToItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addReplyToItem(ReplyToItemType $value) + { + $value = $this->castValueIfNeeded("replyToItem", $value); + + if ($this->replyToItem === null) { + $this->replyToItem = array(); + } + + if (!is_array($this->replyToItem)) { + $this->replyToItem = array($this->replyToItem); + } + + $this->replyToItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ReplyToItemType[] @@ -386,6 +615,27 @@ public function setReplyToItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ForwardItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addForwardItem(ForwardItemType $value) + { + $value = $this->castValueIfNeeded("forwardItem", $value); + + if ($this->forwardItem === null) { + $this->forwardItem = array(); + } + + if (!is_array($this->forwardItem)) { + $this->forwardItem = array($this->forwardItem); + } + + $this->forwardItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ForwardItemType[] @@ -406,6 +656,27 @@ public function setForwardItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ReplyAllToItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addReplyAllToItem(ReplyAllToItemType $value) + { + $value = $this->castValueIfNeeded("replyAllToItem", $value); + + if ($this->replyAllToItem === null) { + $this->replyAllToItem = array(); + } + + if (!is_array($this->replyAllToItem)) { + $this->replyAllToItem = array($this->replyAllToItem); + } + + $this->replyAllToItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ReplyAllToItemType[] @@ -426,6 +697,27 @@ public function setReplyAllToItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AcceptItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addAcceptItem(AcceptItemType $value) + { + $value = $this->castValueIfNeeded("acceptItem", $value); + + if ($this->acceptItem === null) { + $this->acceptItem = array(); + } + + if (!is_array($this->acceptItem)) { + $this->acceptItem = array($this->acceptItem); + } + + $this->acceptItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AcceptItemType[] @@ -446,6 +738,27 @@ public function setAcceptItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TentativelyAcceptItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addTentativelyAcceptItem(TentativelyAcceptItemType $value) + { + $value = $this->castValueIfNeeded("tentativelyAcceptItem", $value); + + if ($this->tentativelyAcceptItem === null) { + $this->tentativelyAcceptItem = array(); + } + + if (!is_array($this->tentativelyAcceptItem)) { + $this->tentativelyAcceptItem = array($this->tentativelyAcceptItem); + } + + $this->tentativelyAcceptItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TentativelyAcceptItemType[] @@ -466,6 +779,27 @@ public function setTentativelyAcceptItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeclineItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addDeclineItem(DeclineItemType $value) + { + $value = $this->castValueIfNeeded("declineItem", $value); + + if ($this->declineItem === null) { + $this->declineItem = array(); + } + + if (!is_array($this->declineItem)) { + $this->declineItem = array($this->declineItem); + } + + $this->declineItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeclineItemType[] @@ -486,6 +820,27 @@ public function setDeclineItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CancelCalendarItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addCancelCalendarItem(CancelCalendarItemType $value) + { + $value = $this->castValueIfNeeded("cancelCalendarItem", $value); + + if ($this->cancelCalendarItem === null) { + $this->cancelCalendarItem = array(); + } + + if (!is_array($this->cancelCalendarItem)) { + $this->cancelCalendarItem = array($this->cancelCalendarItem); + } + + $this->cancelCalendarItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CancelCalendarItemType[] @@ -506,6 +861,27 @@ public function setCancelCalendarItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RemoveItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addRemoveItem(RemoveItemType $value) + { + $value = $this->castValueIfNeeded("removeItem", $value); + + if ($this->removeItem === null) { + $this->removeItem = array(); + } + + if (!is_array($this->removeItem)) { + $this->removeItem = array($this->removeItem); + } + + $this->removeItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RemoveItemType[] @@ -526,6 +902,27 @@ public function setRemoveItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SuppressReadReceiptType + * @return NonEmptyArrayOfAllItemsType + */ + public function addSuppressReadReceipt(SuppressReadReceiptType $value) + { + $value = $this->castValueIfNeeded("suppressReadReceipt", $value); + + if ($this->suppressReadReceipt === null) { + $this->suppressReadReceipt = array(); + } + + if (!is_array($this->suppressReadReceipt)) { + $this->suppressReadReceipt = array($this->suppressReadReceipt); + } + + $this->suppressReadReceipt[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SuppressReadReceiptType[] @@ -546,6 +943,27 @@ public function setSuppressReadReceipt(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PostReplyItemType + * @return NonEmptyArrayOfAllItemsType + */ + public function addPostReplyItem(PostReplyItemType $value) + { + $value = $this->castValueIfNeeded("postReplyItem", $value); + + if ($this->postReplyItem === null) { + $this->postReplyItem = array(); + } + + if (!is_array($this->postReplyItem)) { + $this->postReplyItem = array($this->postReplyItem); + } + + $this->postReplyItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PostReplyItemType[] @@ -566,6 +984,27 @@ public function setPostReplyItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AcceptSharingInvitationType + * @return NonEmptyArrayOfAllItemsType + */ + public function addAcceptSharingInvitation(AcceptSharingInvitationType $value) + { + $value = $this->castValueIfNeeded("acceptSharingInvitation", $value); + + if ($this->acceptSharingInvitation === null) { + $this->acceptSharingInvitation = array(); + } + + if (!is_array($this->acceptSharingInvitation)) { + $this->acceptSharingInvitation = array($this->acceptSharingInvitation); + } + + $this->acceptSharingInvitation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AcceptSharingInvitationType[] diff --git a/src/API/Type/NonEmptyArrayOfAlternateIdsType.php b/src/API/Type/NonEmptyArrayOfAlternateIdsType.php index d05d5da6..6f1a9896 100644 --- a/src/API/Type/NonEmptyArrayOfAlternateIdsType.php +++ b/src/API/Type/NonEmptyArrayOfAlternateIdsType.php @@ -9,10 +9,6 @@ * * A non-empty array of alternate Ids. * XSD Type: NonEmptyArrayOfAlternateIdsType - * - * @method NonEmptyArrayOfAlternateIdsType addAlternateId(AlternateIdType $alternateId) - * @method NonEmptyArrayOfAlternateIdsType addAlternatePublicFolderId(AlternatePublicFolderIdType $alternatePublicFolderId) - * @method NonEmptyArrayOfAlternateIdsType addAlternatePublicFolderItemId(AlternatePublicFolderItemIdType $alternatePublicFolderItemId) */ class NonEmptyArrayOfAlternateIdsType extends Type { @@ -32,6 +28,27 @@ class NonEmptyArrayOfAlternateIdsType extends Type */ protected $alternatePublicFolderItemId = null; + /** + * @autogenerated This method is safe to replace + * @param $value AlternateIdType + * @return NonEmptyArrayOfAlternateIdsType + */ + public function addAlternateId(AlternateIdType $value) + { + $value = $this->castValueIfNeeded("alternateId", $value); + + if ($this->alternateId === null) { + $this->alternateId = array(); + } + + if (!is_array($this->alternateId)) { + $this->alternateId = array($this->alternateId); + } + + $this->alternateId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AlternateIdType[] @@ -52,6 +69,27 @@ public function setAlternateId(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AlternatePublicFolderIdType + * @return NonEmptyArrayOfAlternateIdsType + */ + public function addAlternatePublicFolderId(AlternatePublicFolderIdType $value) + { + $value = $this->castValueIfNeeded("alternatePublicFolderId", $value); + + if ($this->alternatePublicFolderId === null) { + $this->alternatePublicFolderId = array(); + } + + if (!is_array($this->alternatePublicFolderId)) { + $this->alternatePublicFolderId = array($this->alternatePublicFolderId); + } + + $this->alternatePublicFolderId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AlternatePublicFolderIdType[] @@ -72,6 +110,27 @@ public function setAlternatePublicFolderId(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AlternatePublicFolderItemIdType + * @return NonEmptyArrayOfAlternateIdsType + */ + public function addAlternatePublicFolderItemId(AlternatePublicFolderItemIdType $value) + { + $value = $this->castValueIfNeeded("alternatePublicFolderItemId", $value); + + if ($this->alternatePublicFolderItemId === null) { + $this->alternatePublicFolderItemId = array(); + } + + if (!is_array($this->alternatePublicFolderItemId)) { + $this->alternatePublicFolderItemId = array($this->alternatePublicFolderItemId); + } + + $this->alternatePublicFolderItemId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AlternatePublicFolderItemIdType[] diff --git a/src/API/Type/NonEmptyArrayOfAttachmentsType.php b/src/API/Type/NonEmptyArrayOfAttachmentsType.php index 03b55982..11dae818 100644 --- a/src/API/Type/NonEmptyArrayOfAttachmentsType.php +++ b/src/API/Type/NonEmptyArrayOfAttachmentsType.php @@ -9,9 +9,6 @@ * * * XSD Type: NonEmptyArrayOfAttachmentsType - * - * @method NonEmptyArrayOfAttachmentsType addItemAttachment(ItemAttachmentType $itemAttachment) - * @method NonEmptyArrayOfAttachmentsType addFileAttachment(FileAttachmentType $fileAttachment) */ class NonEmptyArrayOfAttachmentsType extends Type { @@ -50,6 +47,27 @@ public function getItemAttachment() return $this->itemAttachment; } + /** + * @autogenerated This method is safe to replace + * @param $value ItemAttachmentType + * @return NonEmptyArrayOfAttachmentsType + */ + public function addItemAttachment(ItemAttachmentType $value) + { + $value = $this->castValueIfNeeded("itemAttachment", $value); + + if ($this->itemAttachment === null) { + $this->itemAttachment = array(); + } + + if (!is_array($this->itemAttachment)) { + $this->itemAttachment = array($this->itemAttachment); + } + + $this->itemAttachment[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @param $value ItemAttachmentType[] @@ -61,6 +79,27 @@ public function setItemAttachment(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value FileAttachmentType + * @return NonEmptyArrayOfAttachmentsType + */ + public function addFileAttachment(FileAttachmentType $value) + { + $value = $this->castValueIfNeeded("fileAttachment", $value); + + if ($this->fileAttachment === null) { + $this->fileAttachment = array(); + } + + if (!is_array($this->fileAttachment)) { + $this->fileAttachment = array($this->fileAttachment); + } + + $this->fileAttachment[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @param $value FileAttachmentType[] diff --git a/src/API/Type/NonEmptyArrayOfBaseFolderIdsType.php b/src/API/Type/NonEmptyArrayOfBaseFolderIdsType.php index 67235709..27d571fc 100644 --- a/src/API/Type/NonEmptyArrayOfBaseFolderIdsType.php +++ b/src/API/Type/NonEmptyArrayOfBaseFolderIdsType.php @@ -9,9 +9,6 @@ * * * XSD Type: NonEmptyArrayOfBaseFolderIdsType - * - * @method NonEmptyArrayOfBaseFolderIdsType addFolderId(FolderIdType $folderId) - * @method NonEmptyArrayOfBaseFolderIdsType addDistinguishedFolderId(DistinguishedFolderIdType $distinguishedFolderId) */ class NonEmptyArrayOfBaseFolderIdsType extends Type { @@ -26,6 +23,27 @@ class NonEmptyArrayOfBaseFolderIdsType extends Type */ protected $distinguishedFolderId = null; + /** + * @autogenerated This method is safe to replace + * @param $value FolderIdType + * @return NonEmptyArrayOfBaseFolderIdsType + */ + public function addFolderId(FolderIdType $value) + { + $value = $this->castValueIfNeeded("folderId", $value); + + if ($this->folderId === null) { + $this->folderId = array(); + } + + if (!is_array($this->folderId)) { + $this->folderId = array($this->folderId); + } + + $this->folderId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderIdType[] @@ -46,6 +64,27 @@ public function setFolderId(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DistinguishedFolderIdType + * @return NonEmptyArrayOfBaseFolderIdsType + */ + public function addDistinguishedFolderId(DistinguishedFolderIdType $value) + { + $value = $this->castValueIfNeeded("distinguishedFolderId", $value); + + if ($this->distinguishedFolderId === null) { + $this->distinguishedFolderId = array(); + } + + if (!is_array($this->distinguishedFolderId)) { + $this->distinguishedFolderId = array($this->distinguishedFolderId); + } + + $this->distinguishedFolderId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DistinguishedFolderIdType[] diff --git a/src/API/Type/NonEmptyArrayOfBaseItemIdsType.php b/src/API/Type/NonEmptyArrayOfBaseItemIdsType.php index 5a85332d..e5ce4231 100644 --- a/src/API/Type/NonEmptyArrayOfBaseItemIdsType.php +++ b/src/API/Type/NonEmptyArrayOfBaseItemIdsType.php @@ -9,10 +9,6 @@ * * * XSD Type: NonEmptyArrayOfBaseItemIdsType - * - * @method NonEmptyArrayOfBaseItemIdsType addItemId(ItemIdType $itemId) - * @method NonEmptyArrayOfBaseItemIdsType addOccurrenceItemId(OccurrenceItemIdType $occurrenceItemId) - * @method NonEmptyArrayOfBaseItemIdsType addRecurringMasterItemId(RecurringMasterItemIdType $recurringMasterItemId) */ class NonEmptyArrayOfBaseItemIdsType extends Type { @@ -32,6 +28,27 @@ class NonEmptyArrayOfBaseItemIdsType extends Type */ protected $recurringMasterItemId = null; + /** + * @autogenerated This method is safe to replace + * @param $value ItemIdType + * @return NonEmptyArrayOfBaseItemIdsType + */ + public function addItemId(ItemIdType $value) + { + $value = $this->castValueIfNeeded("itemId", $value); + + if ($this->itemId === null) { + $this->itemId = array(); + } + + if (!is_array($this->itemId)) { + $this->itemId = array($this->itemId); + } + + $this->itemId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ItemIdType[] @@ -52,6 +69,27 @@ public function setItemId(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value OccurrenceItemIdType + * @return NonEmptyArrayOfBaseItemIdsType + */ + public function addOccurrenceItemId(OccurrenceItemIdType $value) + { + $value = $this->castValueIfNeeded("occurrenceItemId", $value); + + if ($this->occurrenceItemId === null) { + $this->occurrenceItemId = array(); + } + + if (!is_array($this->occurrenceItemId)) { + $this->occurrenceItemId = array($this->occurrenceItemId); + } + + $this->occurrenceItemId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return OccurrenceItemIdType[] @@ -72,6 +110,27 @@ public function setOccurrenceItemId(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RecurringMasterItemIdType + * @return NonEmptyArrayOfBaseItemIdsType + */ + public function addRecurringMasterItemId(RecurringMasterItemIdType $value) + { + $value = $this->castValueIfNeeded("recurringMasterItemId", $value); + + if ($this->recurringMasterItemId === null) { + $this->recurringMasterItemId = array(); + } + + if (!is_array($this->recurringMasterItemId)) { + $this->recurringMasterItemId = array($this->recurringMasterItemId); + } + + $this->recurringMasterItemId[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RecurringMasterItemIdType[] diff --git a/src/API/Type/NonEmptyArrayOfFolderChangeDescriptionsType.php b/src/API/Type/NonEmptyArrayOfFolderChangeDescriptionsType.php index a2a1a8d7..45bb4da7 100644 --- a/src/API/Type/NonEmptyArrayOfFolderChangeDescriptionsType.php +++ b/src/API/Type/NonEmptyArrayOfFolderChangeDescriptionsType.php @@ -9,10 +9,6 @@ * * * XSD Type: NonEmptyArrayOfFolderChangeDescriptionsType - * - * @method NonEmptyArrayOfFolderChangeDescriptionsType addAppendToFolderField(AppendToFolderFieldType $appendToFolderField) - * @method NonEmptyArrayOfFolderChangeDescriptionsType addSetFolderField(SetFolderFieldType $setFolderField) - * @method NonEmptyArrayOfFolderChangeDescriptionsType addDeleteFolderField(DeleteFolderFieldType $deleteFolderField) */ class NonEmptyArrayOfFolderChangeDescriptionsType extends Type { @@ -32,6 +28,27 @@ class NonEmptyArrayOfFolderChangeDescriptionsType extends Type */ protected $deleteFolderField = null; + /** + * @autogenerated This method is safe to replace + * @param $value AppendToFolderFieldType + * @return NonEmptyArrayOfFolderChangeDescriptionsType + */ + public function addAppendToFolderField(AppendToFolderFieldType $value) + { + $value = $this->castValueIfNeeded("appendToFolderField", $value); + + if ($this->appendToFolderField === null) { + $this->appendToFolderField = array(); + } + + if (!is_array($this->appendToFolderField)) { + $this->appendToFolderField = array($this->appendToFolderField); + } + + $this->appendToFolderField[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AppendToFolderFieldType[] @@ -52,6 +69,27 @@ public function setAppendToFolderField(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SetFolderFieldType + * @return NonEmptyArrayOfFolderChangeDescriptionsType + */ + public function addSetFolderField(SetFolderFieldType $value) + { + $value = $this->castValueIfNeeded("setFolderField", $value); + + if ($this->setFolderField === null) { + $this->setFolderField = array(); + } + + if (!is_array($this->setFolderField)) { + $this->setFolderField = array($this->setFolderField); + } + + $this->setFolderField[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SetFolderFieldType[] @@ -72,6 +110,27 @@ public function setSetFolderField(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeleteFolderFieldType + * @return NonEmptyArrayOfFolderChangeDescriptionsType + */ + public function addDeleteFolderField(DeleteFolderFieldType $value) + { + $value = $this->castValueIfNeeded("deleteFolderField", $value); + + if ($this->deleteFolderField === null) { + $this->deleteFolderField = array(); + } + + if (!is_array($this->deleteFolderField)) { + $this->deleteFolderField = array($this->deleteFolderField); + } + + $this->deleteFolderField[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeleteFolderFieldType[] diff --git a/src/API/Type/NonEmptyArrayOfFoldersType.php b/src/API/Type/NonEmptyArrayOfFoldersType.php index 91de068e..61b27c22 100644 --- a/src/API/Type/NonEmptyArrayOfFoldersType.php +++ b/src/API/Type/NonEmptyArrayOfFoldersType.php @@ -9,12 +9,6 @@ * * * XSD Type: NonEmptyArrayOfFoldersType - * - * @method NonEmptyArrayOfFoldersType addFolder(FolderType $folder) - * @method NonEmptyArrayOfFoldersType addCalendarFolder(CalendarFolderType $calendarFolder) - * @method NonEmptyArrayOfFoldersType addContactsFolder(ContactsFolderType $contactsFolder) - * @method NonEmptyArrayOfFoldersType addSearchFolder(SearchFolderType $searchFolder) - * @method NonEmptyArrayOfFoldersType addTasksFolder(TasksFolderType $tasksFolder) */ class NonEmptyArrayOfFoldersType extends Type { @@ -44,6 +38,27 @@ class NonEmptyArrayOfFoldersType extends Type */ protected $tasksFolder = null; + /** + * @autogenerated This method is safe to replace + * @param $value FolderType + * @return NonEmptyArrayOfFoldersType + */ + public function addFolder(FolderType $value) + { + $value = $this->castValueIfNeeded("folder", $value); + + if ($this->folder === null) { + $this->folder = array(); + } + + if (!is_array($this->folder)) { + $this->folder = array($this->folder); + } + + $this->folder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FolderType[] @@ -64,6 +79,27 @@ public function setFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CalendarFolderType + * @return NonEmptyArrayOfFoldersType + */ + public function addCalendarFolder(CalendarFolderType $value) + { + $value = $this->castValueIfNeeded("calendarFolder", $value); + + if ($this->calendarFolder === null) { + $this->calendarFolder = array(); + } + + if (!is_array($this->calendarFolder)) { + $this->calendarFolder = array($this->calendarFolder); + } + + $this->calendarFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CalendarFolderType[] @@ -84,6 +120,27 @@ public function setCalendarFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ContactsFolderType + * @return NonEmptyArrayOfFoldersType + */ + public function addContactsFolder(ContactsFolderType $value) + { + $value = $this->castValueIfNeeded("contactsFolder", $value); + + if ($this->contactsFolder === null) { + $this->contactsFolder = array(); + } + + if (!is_array($this->contactsFolder)) { + $this->contactsFolder = array($this->contactsFolder); + } + + $this->contactsFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ContactsFolderType[] @@ -104,6 +161,27 @@ public function setContactsFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SearchFolderType + * @return NonEmptyArrayOfFoldersType + */ + public function addSearchFolder(SearchFolderType $value) + { + $value = $this->castValueIfNeeded("searchFolder", $value); + + if ($this->searchFolder === null) { + $this->searchFolder = array(); + } + + if (!is_array($this->searchFolder)) { + $this->searchFolder = array($this->searchFolder); + } + + $this->searchFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SearchFolderType[] @@ -124,6 +202,27 @@ public function setSearchFolder(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TasksFolderType + * @return NonEmptyArrayOfFoldersType + */ + public function addTasksFolder(TasksFolderType $value) + { + $value = $this->castValueIfNeeded("tasksFolder", $value); + + if ($this->tasksFolder === null) { + $this->tasksFolder = array(); + } + + if (!is_array($this->tasksFolder)) { + $this->tasksFolder = array($this->tasksFolder); + } + + $this->tasksFolder[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TasksFolderType[] diff --git a/src/API/Type/NonEmptyArrayOfItemChangeDescriptionsType.php b/src/API/Type/NonEmptyArrayOfItemChangeDescriptionsType.php index 09c5ec07..d7027735 100644 --- a/src/API/Type/NonEmptyArrayOfItemChangeDescriptionsType.php +++ b/src/API/Type/NonEmptyArrayOfItemChangeDescriptionsType.php @@ -9,10 +9,6 @@ * * * XSD Type: NonEmptyArrayOfItemChangeDescriptionsType - * - * @method NonEmptyArrayOfItemChangeDescriptionsType addAppendToItemField(AppendToItemFieldType $appendToItemField) - * @method NonEmptyArrayOfItemChangeDescriptionsType addSetItemField(SetItemFieldType $setItemField) - * @method NonEmptyArrayOfItemChangeDescriptionsType addDeleteItemField(DeleteItemFieldType $deleteItemField) */ class NonEmptyArrayOfItemChangeDescriptionsType extends Type { @@ -32,6 +28,27 @@ class NonEmptyArrayOfItemChangeDescriptionsType extends Type */ protected $deleteItemField = null; + /** + * @autogenerated This method is safe to replace + * @param $value AppendToItemFieldType + * @return NonEmptyArrayOfItemChangeDescriptionsType + */ + public function addAppendToItemField(AppendToItemFieldType $value) + { + $value = $this->castValueIfNeeded("appendToItemField", $value); + + if ($this->appendToItemField === null) { + $this->appendToItemField = array(); + } + + if (!is_array($this->appendToItemField)) { + $this->appendToItemField = array($this->appendToItemField); + } + + $this->appendToItemField[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AppendToItemFieldType[] @@ -52,6 +69,27 @@ public function setAppendToItemField(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SetItemFieldType + * @return NonEmptyArrayOfItemChangeDescriptionsType + */ + public function addSetItemField(SetItemFieldType $value) + { + $value = $this->castValueIfNeeded("setItemField", $value); + + if ($this->setItemField === null) { + $this->setItemField = array(); + } + + if (!is_array($this->setItemField)) { + $this->setItemField = array($this->setItemField); + } + + $this->setItemField[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SetItemFieldType[] @@ -72,6 +110,27 @@ public function setSetItemField(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeleteItemFieldType + * @return NonEmptyArrayOfItemChangeDescriptionsType + */ + public function addDeleteItemField(DeleteItemFieldType $value) + { + $value = $this->castValueIfNeeded("deleteItemField", $value); + + if ($this->deleteItemField === null) { + $this->deleteItemField = array(); + } + + if (!is_array($this->deleteItemField)) { + $this->deleteItemField = array($this->deleteItemField); + } + + $this->deleteItemField[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeleteItemFieldType[] diff --git a/src/API/Type/NonEmptyArrayOfPathsToElementType.php b/src/API/Type/NonEmptyArrayOfPathsToElementType.php index d6e0ec9b..77cca8b1 100644 --- a/src/API/Type/NonEmptyArrayOfPathsToElementType.php +++ b/src/API/Type/NonEmptyArrayOfPathsToElementType.php @@ -9,10 +9,6 @@ * * * XSD Type: NonEmptyArrayOfPathsToElementType - * - * @method NonEmptyArrayOfPathsToElementType addFieldURI(FieldURI $fieldURI) - * @method NonEmptyArrayOfPathsToElementType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method NonEmptyArrayOfPathsToElementType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class NonEmptyArrayOfPathsToElementType extends Type { @@ -32,6 +28,27 @@ class NonEmptyArrayOfPathsToElementType extends Type */ protected $extendedFieldURI = null; + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return NonEmptyArrayOfPathsToElementType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -52,6 +69,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return NonEmptyArrayOfPathsToElementType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -72,6 +110,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return NonEmptyArrayOfPathsToElementType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/NonEmptyArrayOfResponseObjectsType.php b/src/API/Type/NonEmptyArrayOfResponseObjectsType.php index 0fb649ab..9d20d06f 100644 --- a/src/API/Type/NonEmptyArrayOfResponseObjectsType.php +++ b/src/API/Type/NonEmptyArrayOfResponseObjectsType.php @@ -9,18 +9,6 @@ * * * XSD Type: NonEmptyArrayOfResponseObjectsType - * - * @method NonEmptyArrayOfResponseObjectsType addAcceptItem(AcceptItemType $acceptItem) - * @method NonEmptyArrayOfResponseObjectsType addTentativelyAcceptItem(TentativelyAcceptItemType $tentativelyAcceptItem) - * @method NonEmptyArrayOfResponseObjectsType addDeclineItem(DeclineItemType $declineItem) - * @method NonEmptyArrayOfResponseObjectsType addReplyToItem(ReplyToItemType $replyToItem) - * @method NonEmptyArrayOfResponseObjectsType addForwardItem(ForwardItemType $forwardItem) - * @method NonEmptyArrayOfResponseObjectsType addReplyAllToItem(ReplyAllToItemType $replyAllToItem) - * @method NonEmptyArrayOfResponseObjectsType addCancelCalendarItem(CancelCalendarItemType $cancelCalendarItem) - * @method NonEmptyArrayOfResponseObjectsType addRemoveItem(RemoveItemType $removeItem) - * @method NonEmptyArrayOfResponseObjectsType addSuppressReadReceipt(SuppressReadReceiptType $suppressReadReceipt) - * @method NonEmptyArrayOfResponseObjectsType addPostReplyItem(PostReplyItemType $postReplyItem) - * @method NonEmptyArrayOfResponseObjectsType addAcceptSharingInvitation(AcceptSharingInvitationType $acceptSharingInvitation) */ class NonEmptyArrayOfResponseObjectsType extends Type { @@ -80,6 +68,27 @@ class NonEmptyArrayOfResponseObjectsType extends Type */ protected $acceptSharingInvitation = null; + /** + * @autogenerated This method is safe to replace + * @param $value AcceptItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addAcceptItem(AcceptItemType $value) + { + $value = $this->castValueIfNeeded("acceptItem", $value); + + if ($this->acceptItem === null) { + $this->acceptItem = array(); + } + + if (!is_array($this->acceptItem)) { + $this->acceptItem = array($this->acceptItem); + } + + $this->acceptItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AcceptItemType[] @@ -100,6 +109,27 @@ public function setAcceptItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TentativelyAcceptItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addTentativelyAcceptItem(TentativelyAcceptItemType $value) + { + $value = $this->castValueIfNeeded("tentativelyAcceptItem", $value); + + if ($this->tentativelyAcceptItem === null) { + $this->tentativelyAcceptItem = array(); + } + + if (!is_array($this->tentativelyAcceptItem)) { + $this->tentativelyAcceptItem = array($this->tentativelyAcceptItem); + } + + $this->tentativelyAcceptItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TentativelyAcceptItemType[] @@ -120,6 +150,27 @@ public function setTentativelyAcceptItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value DeclineItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addDeclineItem(DeclineItemType $value) + { + $value = $this->castValueIfNeeded("declineItem", $value); + + if ($this->declineItem === null) { + $this->declineItem = array(); + } + + if (!is_array($this->declineItem)) { + $this->declineItem = array($this->declineItem); + } + + $this->declineItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return DeclineItemType[] @@ -140,6 +191,27 @@ public function setDeclineItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ReplyToItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addReplyToItem(ReplyToItemType $value) + { + $value = $this->castValueIfNeeded("replyToItem", $value); + + if ($this->replyToItem === null) { + $this->replyToItem = array(); + } + + if (!is_array($this->replyToItem)) { + $this->replyToItem = array($this->replyToItem); + } + + $this->replyToItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ReplyToItemType[] @@ -160,6 +232,27 @@ public function setReplyToItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ForwardItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addForwardItem(ForwardItemType $value) + { + $value = $this->castValueIfNeeded("forwardItem", $value); + + if ($this->forwardItem === null) { + $this->forwardItem = array(); + } + + if (!is_array($this->forwardItem)) { + $this->forwardItem = array($this->forwardItem); + } + + $this->forwardItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ForwardItemType[] @@ -180,6 +273,27 @@ public function setForwardItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ReplyAllToItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addReplyAllToItem(ReplyAllToItemType $value) + { + $value = $this->castValueIfNeeded("replyAllToItem", $value); + + if ($this->replyAllToItem === null) { + $this->replyAllToItem = array(); + } + + if (!is_array($this->replyAllToItem)) { + $this->replyAllToItem = array($this->replyAllToItem); + } + + $this->replyAllToItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ReplyAllToItemType[] @@ -200,6 +314,27 @@ public function setReplyAllToItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value CancelCalendarItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addCancelCalendarItem(CancelCalendarItemType $value) + { + $value = $this->castValueIfNeeded("cancelCalendarItem", $value); + + if ($this->cancelCalendarItem === null) { + $this->cancelCalendarItem = array(); + } + + if (!is_array($this->cancelCalendarItem)) { + $this->cancelCalendarItem = array($this->cancelCalendarItem); + } + + $this->cancelCalendarItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return CancelCalendarItemType[] @@ -220,6 +355,27 @@ public function setCancelCalendarItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RemoveItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addRemoveItem(RemoveItemType $value) + { + $value = $this->castValueIfNeeded("removeItem", $value); + + if ($this->removeItem === null) { + $this->removeItem = array(); + } + + if (!is_array($this->removeItem)) { + $this->removeItem = array($this->removeItem); + } + + $this->removeItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RemoveItemType[] @@ -240,6 +396,27 @@ public function setRemoveItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SuppressReadReceiptType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addSuppressReadReceipt(SuppressReadReceiptType $value) + { + $value = $this->castValueIfNeeded("suppressReadReceipt", $value); + + if ($this->suppressReadReceipt === null) { + $this->suppressReadReceipt = array(); + } + + if (!is_array($this->suppressReadReceipt)) { + $this->suppressReadReceipt = array($this->suppressReadReceipt); + } + + $this->suppressReadReceipt[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SuppressReadReceiptType[] @@ -260,6 +437,27 @@ public function setSuppressReadReceipt(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PostReplyItemType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addPostReplyItem(PostReplyItemType $value) + { + $value = $this->castValueIfNeeded("postReplyItem", $value); + + if ($this->postReplyItem === null) { + $this->postReplyItem = array(); + } + + if (!is_array($this->postReplyItem)) { + $this->postReplyItem = array($this->postReplyItem); + } + + $this->postReplyItem[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PostReplyItemType[] @@ -280,6 +478,27 @@ public function setPostReplyItem(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AcceptSharingInvitationType + * @return NonEmptyArrayOfResponseObjectsType + */ + public function addAcceptSharingInvitation(AcceptSharingInvitationType $value) + { + $value = $this->castValueIfNeeded("acceptSharingInvitation", $value); + + if ($this->acceptSharingInvitation === null) { + $this->acceptSharingInvitation = array(); + } + + if (!is_array($this->acceptSharingInvitation)) { + $this->acceptSharingInvitation = array($this->acceptSharingInvitation); + } + + $this->acceptSharingInvitation[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AcceptSharingInvitationType[] diff --git a/src/API/Type/NotType.php b/src/API/Type/NotType.php index dfca7cbd..8d1477c8 100644 --- a/src/API/Type/NotType.php +++ b/src/API/Type/NotType.php @@ -7,19 +7,6 @@ * * * XSD Type: NotType - * - * @method NotType addContains(Contains $contains) - * @method NotType addExcludes(Excludes $excludes) - * @method NotType addExists(Exists $exists) - * @method NotType addIsEqualTo(IsEqualTo $isEqualTo) - * @method NotType addIsNotEqualTo(IsNotEqualTo $isNotEqualTo) - * @method NotType addIsGreaterThan(IsGreaterThan $isGreaterThan) - * @method NotType addIsGreaterThanOrEqualTo(IsGreaterThanOrEqualTo $isGreaterThanOrEqualTo) - * @method NotType addIsLessThan(IsLessThan $isLessThan) - * @method NotType addIsLessThanOrEqualTo(IsLessThanOrEqualTo $isLessThanOrEqualTo) - * @method NotType addAnd(AndElement $and) - * @method NotType addNot(Not $not) - * @method NotType addOr(OrElement $or) */ class NotType extends SearchExpressionType { @@ -84,6 +71,27 @@ class NotType extends SearchExpressionType */ protected $or = null; + /** + * @autogenerated This method is safe to replace + * @param $value Contains + * @return NotType + */ + public function addContains(Contains $value) + { + $value = $this->castValueIfNeeded("contains", $value); + + if ($this->contains === null) { + $this->contains = array(); + } + + if (!is_array($this->contains)) { + $this->contains = array($this->contains); + } + + $this->contains[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Contains[] @@ -104,6 +112,27 @@ public function setContains(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Excludes + * @return NotType + */ + public function addExcludes(Excludes $value) + { + $value = $this->castValueIfNeeded("excludes", $value); + + if ($this->excludes === null) { + $this->excludes = array(); + } + + if (!is_array($this->excludes)) { + $this->excludes = array($this->excludes); + } + + $this->excludes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Excludes[] @@ -124,6 +153,27 @@ public function setExcludes(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Exists + * @return NotType + */ + public function addExists(Exists $value) + { + $value = $this->castValueIfNeeded("exists", $value); + + if ($this->exists === null) { + $this->exists = array(); + } + + if (!is_array($this->exists)) { + $this->exists = array($this->exists); + } + + $this->exists[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Exists[] @@ -144,6 +194,27 @@ public function setExists(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsEqualTo + * @return NotType + */ + public function addIsEqualTo(IsEqualTo $value) + { + $value = $this->castValueIfNeeded("isEqualTo", $value); + + if ($this->isEqualTo === null) { + $this->isEqualTo = array(); + } + + if (!is_array($this->isEqualTo)) { + $this->isEqualTo = array($this->isEqualTo); + } + + $this->isEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsEqualTo[] @@ -164,6 +235,27 @@ public function setIsEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsNotEqualTo + * @return NotType + */ + public function addIsNotEqualTo(IsNotEqualTo $value) + { + $value = $this->castValueIfNeeded("isNotEqualTo", $value); + + if ($this->isNotEqualTo === null) { + $this->isNotEqualTo = array(); + } + + if (!is_array($this->isNotEqualTo)) { + $this->isNotEqualTo = array($this->isNotEqualTo); + } + + $this->isNotEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsNotEqualTo[] @@ -184,6 +276,27 @@ public function setIsNotEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsGreaterThan + * @return NotType + */ + public function addIsGreaterThan(IsGreaterThan $value) + { + $value = $this->castValueIfNeeded("isGreaterThan", $value); + + if ($this->isGreaterThan === null) { + $this->isGreaterThan = array(); + } + + if (!is_array($this->isGreaterThan)) { + $this->isGreaterThan = array($this->isGreaterThan); + } + + $this->isGreaterThan[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsGreaterThan[] @@ -204,6 +317,27 @@ public function setIsGreaterThan(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsGreaterThanOrEqualTo + * @return NotType + */ + public function addIsGreaterThanOrEqualTo(IsGreaterThanOrEqualTo $value) + { + $value = $this->castValueIfNeeded("isGreaterThanOrEqualTo", $value); + + if ($this->isGreaterThanOrEqualTo === null) { + $this->isGreaterThanOrEqualTo = array(); + } + + if (!is_array($this->isGreaterThanOrEqualTo)) { + $this->isGreaterThanOrEqualTo = array($this->isGreaterThanOrEqualTo); + } + + $this->isGreaterThanOrEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsGreaterThanOrEqualTo[] @@ -224,6 +358,27 @@ public function setIsGreaterThanOrEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsLessThan + * @return NotType + */ + public function addIsLessThan(IsLessThan $value) + { + $value = $this->castValueIfNeeded("isLessThan", $value); + + if ($this->isLessThan === null) { + $this->isLessThan = array(); + } + + if (!is_array($this->isLessThan)) { + $this->isLessThan = array($this->isLessThan); + } + + $this->isLessThan[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsLessThan[] @@ -244,6 +399,27 @@ public function setIsLessThan(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsLessThanOrEqualTo + * @return NotType + */ + public function addIsLessThanOrEqualTo(IsLessThanOrEqualTo $value) + { + $value = $this->castValueIfNeeded("isLessThanOrEqualTo", $value); + + if ($this->isLessThanOrEqualTo === null) { + $this->isLessThanOrEqualTo = array(); + } + + if (!is_array($this->isLessThanOrEqualTo)) { + $this->isLessThanOrEqualTo = array($this->isLessThanOrEqualTo); + } + + $this->isLessThanOrEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsLessThanOrEqualTo[] @@ -264,6 +440,27 @@ public function setIsLessThanOrEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AndElement + * @return NotType + */ + public function addAnd(AndElement $value) + { + $value = $this->castValueIfNeeded("and", $value); + + if ($this->and === null) { + $this->and = array(); + } + + if (!is_array($this->and)) { + $this->and = array($this->and); + } + + $this->and[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AndElement[] @@ -284,6 +481,27 @@ public function setAnd(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Not + * @return NotType + */ + public function addNot(Not $value) + { + $value = $this->castValueIfNeeded("not", $value); + + if ($this->not === null) { + $this->not = array(); + } + + if (!is_array($this->not)) { + $this->not = array($this->not); + } + + $this->not[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Not[] @@ -304,6 +522,27 @@ public function setNot(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value OrElement + * @return NotType + */ + public function addOr(OrElement $value) + { + $value = $this->castValueIfNeeded("or", $value); + + if ($this->or === null) { + $this->or = array(); + } + + if (!is_array($this->or)) { + $this->or = array($this->or); + } + + $this->or[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return OrElement[] diff --git a/src/API/Type/NotificationType.php b/src/API/Type/NotificationType.php index 0163da9b..9af5d5a3 100644 --- a/src/API/Type/NotificationType.php +++ b/src/API/Type/NotificationType.php @@ -9,15 +9,6 @@ * * * XSD Type: NotificationType - * - * @method NotificationType addCopiedEvent(MovedCopiedEventType $copiedEvent) - * @method NotificationType addCreatedEvent(BaseObjectChangedEventType $createdEvent) - * @method NotificationType addDeletedEvent(BaseObjectChangedEventType $deletedEvent) - * @method NotificationType addModifiedEvent(ModifiedEventType $modifiedEvent) - * @method NotificationType addMovedEvent(MovedCopiedEventType $movedEvent) - * @method NotificationType addNewMailEvent(BaseObjectChangedEventType $newMailEvent) - * @method NotificationType addStatusEvent(BaseNotificationEventType $statusEvent) - * @method NotificationType addFreeBusyChangedEvent(BaseObjectChangedEventType $freeBusyChangedEvent) */ class NotificationType extends Type { @@ -146,6 +137,27 @@ public function setMoreEvents($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MovedCopiedEventType + * @return NotificationType + */ + public function addCopiedEvent(MovedCopiedEventType $value) + { + $value = $this->castValueIfNeeded("copiedEvent", $value); + + if ($this->copiedEvent === null) { + $this->copiedEvent = array(); + } + + if (!is_array($this->copiedEvent)) { + $this->copiedEvent = array($this->copiedEvent); + } + + $this->copiedEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MovedCopiedEventType[] @@ -166,6 +178,27 @@ public function setCopiedEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value BaseObjectChangedEventType + * @return NotificationType + */ + public function addCreatedEvent(BaseObjectChangedEventType $value) + { + $value = $this->castValueIfNeeded("createdEvent", $value); + + if ($this->createdEvent === null) { + $this->createdEvent = array(); + } + + if (!is_array($this->createdEvent)) { + $this->createdEvent = array($this->createdEvent); + } + + $this->createdEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return BaseObjectChangedEventType[] @@ -186,6 +219,27 @@ public function setCreatedEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value BaseObjectChangedEventType + * @return NotificationType + */ + public function addDeletedEvent(BaseObjectChangedEventType $value) + { + $value = $this->castValueIfNeeded("deletedEvent", $value); + + if ($this->deletedEvent === null) { + $this->deletedEvent = array(); + } + + if (!is_array($this->deletedEvent)) { + $this->deletedEvent = array($this->deletedEvent); + } + + $this->deletedEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return BaseObjectChangedEventType[] @@ -206,6 +260,27 @@ public function setDeletedEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ModifiedEventType + * @return NotificationType + */ + public function addModifiedEvent(ModifiedEventType $value) + { + $value = $this->castValueIfNeeded("modifiedEvent", $value); + + if ($this->modifiedEvent === null) { + $this->modifiedEvent = array(); + } + + if (!is_array($this->modifiedEvent)) { + $this->modifiedEvent = array($this->modifiedEvent); + } + + $this->modifiedEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ModifiedEventType[] @@ -226,6 +301,27 @@ public function setModifiedEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value MovedCopiedEventType + * @return NotificationType + */ + public function addMovedEvent(MovedCopiedEventType $value) + { + $value = $this->castValueIfNeeded("movedEvent", $value); + + if ($this->movedEvent === null) { + $this->movedEvent = array(); + } + + if (!is_array($this->movedEvent)) { + $this->movedEvent = array($this->movedEvent); + } + + $this->movedEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return MovedCopiedEventType[] @@ -246,6 +342,27 @@ public function setMovedEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value BaseObjectChangedEventType + * @return NotificationType + */ + public function addNewMailEvent(BaseObjectChangedEventType $value) + { + $value = $this->castValueIfNeeded("newMailEvent", $value); + + if ($this->newMailEvent === null) { + $this->newMailEvent = array(); + } + + if (!is_array($this->newMailEvent)) { + $this->newMailEvent = array($this->newMailEvent); + } + + $this->newMailEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return BaseObjectChangedEventType[] @@ -266,6 +383,27 @@ public function setNewMailEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value BaseNotificationEventType + * @return NotificationType + */ + public function addStatusEvent(BaseNotificationEventType $value) + { + $value = $this->castValueIfNeeded("statusEvent", $value); + + if ($this->statusEvent === null) { + $this->statusEvent = array(); + } + + if (!is_array($this->statusEvent)) { + $this->statusEvent = array($this->statusEvent); + } + + $this->statusEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return BaseNotificationEventType[] @@ -286,6 +424,27 @@ public function setStatusEvent(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value BaseObjectChangedEventType + * @return NotificationType + */ + public function addFreeBusyChangedEvent(BaseObjectChangedEventType $value) + { + $value = $this->castValueIfNeeded("freeBusyChangedEvent", $value); + + if ($this->freeBusyChangedEvent === null) { + $this->freeBusyChangedEvent = array(); + } + + if (!is_array($this->freeBusyChangedEvent)) { + $this->freeBusyChangedEvent = array($this->freeBusyChangedEvent); + } + + $this->freeBusyChangedEvent[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return BaseObjectChangedEventType[] diff --git a/src/API/Type/PermissionSetType.php b/src/API/Type/PermissionSetType.php index 4fead60a..1de8b9c5 100644 --- a/src/API/Type/PermissionSetType.php +++ b/src/API/Type/PermissionSetType.php @@ -9,9 +9,6 @@ * * The set of permissions on a folder * XSD Type: PermissionSetType - * - * @method PermissionSetType addPermissions(PermissionType $permissions) - * @method PermissionSetType addUnknownEntries(string $unknownEntries) */ class PermissionSetType extends Type { @@ -26,6 +23,27 @@ class PermissionSetType extends Type */ protected $unknownEntries = null; + /** + * @autogenerated This method is safe to replace + * @param $value PermissionType + * @return PermissionSetType + */ + public function addPermissions(PermissionType $value) + { + $value = $this->castValueIfNeeded("permissions", $value); + + if ($this->permissions === null) { + $this->permissions = array(); + } + + if (!is_array($this->permissions)) { + $this->permissions = array($this->permissions); + } + + $this->permissions[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PermissionType[] @@ -46,6 +64,27 @@ public function setPermissions(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return PermissionSetType + */ + public function addUnknownEntries($value) + { + $value = $this->castValueIfNeeded("unknownEntries", $value); + + if ($this->unknownEntries === null) { + $this->unknownEntries = array(); + } + + if (!is_array($this->unknownEntries)) { + $this->unknownEntries = array($this->unknownEntries); + } + + $this->unknownEntries[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/ProtectionRuleActionType.php b/src/API/Type/ProtectionRuleActionType.php index f2987190..dcfe4eb8 100644 --- a/src/API/Type/ProtectionRuleActionType.php +++ b/src/API/Type/ProtectionRuleActionType.php @@ -9,8 +9,6 @@ * * * XSD Type: ProtectionRuleActionType - * - * @method ProtectionRuleActionType addArgument(ProtectionRuleArgumentType $argument) */ class ProtectionRuleActionType extends Type { @@ -45,6 +43,27 @@ public function setName($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ProtectionRuleArgumentType + * @return ProtectionRuleActionType + */ + public function addArgument(ProtectionRuleArgumentType $value) + { + $value = $this->castValueIfNeeded("argument", $value); + + if ($this->argument === null) { + $this->argument = array(); + } + + if (!is_array($this->argument)) { + $this->argument = array($this->argument); + } + + $this->argument[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ProtectionRuleArgumentType[] diff --git a/src/API/Type/ProtectionRuleAndType.php b/src/API/Type/ProtectionRuleAndType.php index 248d1893..337a0c6e 100644 --- a/src/API/Type/ProtectionRuleAndType.php +++ b/src/API/Type/ProtectionRuleAndType.php @@ -9,12 +9,6 @@ * * * XSD Type: ProtectionRuleAndType - * - * @method ProtectionRuleAndType addAllInternal(string $allInternal) - * @method ProtectionRuleAndType addAnd(ProtectionRuleAndType $and) - * @method ProtectionRuleAndType addRecipientIs(string $recipientIs) - * @method ProtectionRuleAndType addSenderDepartments(string $senderDepartments) - * @method ProtectionRuleAndType addTrue(string $true) */ class ProtectionRuleAndType extends Type { @@ -44,6 +38,27 @@ class ProtectionRuleAndType extends Type */ protected $true = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ProtectionRuleAndType + */ + public function addAllInternal($value) + { + $value = $this->castValueIfNeeded("allInternal", $value); + + if ($this->allInternal === null) { + $this->allInternal = array(); + } + + if (!is_array($this->allInternal)) { + $this->allInternal = array($this->allInternal); + } + + $this->allInternal[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -64,6 +79,27 @@ public function setAllInternal(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ProtectionRuleAndType + * @return ProtectionRuleAndType + */ + public function addAnd(ProtectionRuleAndType $value) + { + $value = $this->castValueIfNeeded("and", $value); + + if ($this->and === null) { + $this->and = array(); + } + + if (!is_array($this->and)) { + $this->and = array($this->and); + } + + $this->and[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ProtectionRuleAndType[] @@ -84,6 +120,27 @@ public function setAnd(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ProtectionRuleAndType + */ + public function addRecipientIs($value) + { + $value = $this->castValueIfNeeded("recipientIs", $value); + + if ($this->recipientIs === null) { + $this->recipientIs = array(); + } + + if (!is_array($this->recipientIs)) { + $this->recipientIs = array($this->recipientIs); + } + + $this->recipientIs[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -104,6 +161,27 @@ public function setRecipientIs(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ProtectionRuleAndType + */ + public function addSenderDepartments($value) + { + $value = $this->castValueIfNeeded("senderDepartments", $value); + + if ($this->senderDepartments === null) { + $this->senderDepartments = array(); + } + + if (!is_array($this->senderDepartments)) { + $this->senderDepartments = array($this->senderDepartments); + } + + $this->senderDepartments[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -124,6 +202,27 @@ public function setSenderDepartments(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ProtectionRuleAndType + */ + public function addTrue($value) + { + $value = $this->castValueIfNeeded("true", $value); + + if ($this->true === null) { + $this->true = array(); + } + + if (!is_array($this->true)) { + $this->true = array($this->true); + } + + $this->true[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/ProtectionRuleConditionType.php b/src/API/Type/ProtectionRuleConditionType.php index 7a4928b3..7db34438 100644 --- a/src/API/Type/ProtectionRuleConditionType.php +++ b/src/API/Type/ProtectionRuleConditionType.php @@ -9,9 +9,6 @@ * * * XSD Type: ProtectionRuleConditionType - * - * @method ProtectionRuleConditionType addRecipientIs(string $recipientIs) - * @method ProtectionRuleConditionType addSenderDepartments(string $senderDepartments) */ class ProtectionRuleConditionType extends Type { @@ -81,6 +78,27 @@ public function setAnd(ProtectionRuleAndType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ProtectionRuleConditionType + */ + public function addRecipientIs($value) + { + $value = $this->castValueIfNeeded("recipientIs", $value); + + if ($this->recipientIs === null) { + $this->recipientIs = array(); + } + + if (!is_array($this->recipientIs)) { + $this->recipientIs = array($this->recipientIs); + } + + $this->recipientIs[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -101,6 +119,27 @@ public function setRecipientIs(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return ProtectionRuleConditionType + */ + public function addSenderDepartments($value) + { + $value = $this->castValueIfNeeded("senderDepartments", $value); + + if ($this->senderDepartments === null) { + $this->senderDepartments = array(); + } + + if (!is_array($this->senderDepartments)) { + $this->senderDepartments = array($this->senderDepartments); + } + + $this->senderDepartments[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/ProtectionRulesServiceConfigurationType.php b/src/API/Type/ProtectionRulesServiceConfigurationType.php index 146a8b10..767bf66f 100644 --- a/src/API/Type/ProtectionRulesServiceConfigurationType.php +++ b/src/API/Type/ProtectionRulesServiceConfigurationType.php @@ -7,9 +7,6 @@ * * * XSD Type: ProtectionRulesServiceConfiguration - * - * @method ProtectionRulesServiceConfigurationType addRules(ProtectionRuleType $rules) - * @method ProtectionRulesServiceConfigurationType addInternalDomains(SmtpDomainType $internalDomains) */ class ProtectionRulesServiceConfigurationType extends ServiceConfigurationType { @@ -49,6 +46,27 @@ public function setRefreshInterval($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ProtectionRuleType + * @return ProtectionRulesServiceConfigurationType + */ + public function addRules(ProtectionRuleType $value) + { + $value = $this->castValueIfNeeded("rules", $value); + + if ($this->rules === null) { + $this->rules = array(); + } + + if (!is_array($this->rules)) { + $this->rules = array($this->rules); + } + + $this->rules[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ProtectionRuleType[] @@ -69,6 +87,27 @@ public function setRules(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SmtpDomainType + * @return ProtectionRulesServiceConfigurationType + */ + public function addInternalDomains(SmtpDomainType $value) + { + $value = $this->castValueIfNeeded("internalDomains", $value); + + if ($this->internalDomains === null) { + $this->internalDomains = array(); + } + + if (!is_array($this->internalDomains)) { + $this->internalDomains = array($this->internalDomains); + } + + $this->internalDomains[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SmtpDomainType[] diff --git a/src/API/Type/RecipientTrackingEventType.php b/src/API/Type/RecipientTrackingEventType.php index 41952348..f5fcd798 100644 --- a/src/API/Type/RecipientTrackingEventType.php +++ b/src/API/Type/RecipientTrackingEventType.php @@ -9,9 +9,6 @@ * * * XSD Type: RecipientTrackingEventType - * - * @method RecipientTrackingEventType addEventData(string $eventData) - * @method RecipientTrackingEventType addProperties(TrackingPropertyType $properties) */ class RecipientTrackingEventType extends Type { @@ -160,6 +157,27 @@ public function setEventDescription($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RecipientTrackingEventType + */ + public function addEventData($value) + { + $value = $this->castValueIfNeeded("eventData", $value); + + if ($this->eventData === null) { + $this->eventData = array(); + } + + if (!is_array($this->eventData)) { + $this->eventData = array($this->eventData); + } + + $this->eventData[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -318,6 +336,27 @@ public function setRootAddress($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value TrackingPropertyType + * @return RecipientTrackingEventType + */ + public function addProperties(TrackingPropertyType $value) + { + $value = $this->castValueIfNeeded("properties", $value); + + if ($this->properties === null) { + $this->properties = array(); + } + + if (!is_array($this->properties)) { + $this->properties = array($this->properties); + } + + $this->properties[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return TrackingPropertyType[] diff --git a/src/API/Type/ReplyBodyType.php b/src/API/Type/ReplyBodyType.php index 2c7bf68e..ff00aa41 100644 --- a/src/API/Type/ReplyBodyType.php +++ b/src/API/Type/ReplyBodyType.php @@ -14,7 +14,7 @@ class ReplyBodyType extends Type { /** - * @var \garethp\ews\API\Type\ReplyBodyType\LangAType + * @var string */ protected $lang = null; @@ -25,7 +25,7 @@ class ReplyBodyType extends Type /** * @autogenerated This method is safe to replace - * @return \garethp\ews\API\Type\ReplyBodyType\LangAType + * @return string */ public function getLang() { @@ -34,10 +34,10 @@ public function getLang() /** * @autogenerated This method is safe to replace - * @param $value \garethp\ews\API\Type\ReplyBodyType\LangAType + * @param $value string * @return ReplyBodyType */ - public function setLang(\garethp\ews\API\Type\ReplyBodyType\LangAType $value) + public function setLang($value) { $this->lang = $this->castValueIfNeeded("lang", $value); return $this; diff --git a/src/API/Type/RestrictionType.php b/src/API/Type/RestrictionType.php index 48350081..1703cc76 100644 --- a/src/API/Type/RestrictionType.php +++ b/src/API/Type/RestrictionType.php @@ -9,19 +9,6 @@ * * * XSD Type: RestrictionType - * - * @method RestrictionType addContains(Contains $contains) - * @method RestrictionType addExcludes(Excludes $excludes) - * @method RestrictionType addExists(Exists $exists) - * @method RestrictionType addIsEqualTo(IsEqualTo $isEqualTo) - * @method RestrictionType addIsNotEqualTo(IsNotEqualTo $isNotEqualTo) - * @method RestrictionType addIsGreaterThan(IsGreaterThan $isGreaterThan) - * @method RestrictionType addIsGreaterThanOrEqualTo(IsGreaterThanOrEqualTo $isGreaterThanOrEqualTo) - * @method RestrictionType addIsLessThan(IsLessThan $isLessThan) - * @method RestrictionType addIsLessThanOrEqualTo(IsLessThanOrEqualTo $isLessThanOrEqualTo) - * @method RestrictionType addAnd(AndElement $and) - * @method RestrictionType addNot(Not $not) - * @method RestrictionType addOr(OrElement $or) */ class RestrictionType extends Type { @@ -86,6 +73,27 @@ class RestrictionType extends Type */ protected $or = null; + /** + * @autogenerated This method is safe to replace + * @param $value Contains + * @return RestrictionType + */ + public function addContains(Contains $value) + { + $value = $this->castValueIfNeeded("contains", $value); + + if ($this->contains === null) { + $this->contains = array(); + } + + if (!is_array($this->contains)) { + $this->contains = array($this->contains); + } + + $this->contains[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Contains[] @@ -106,6 +114,27 @@ public function setContains(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Excludes + * @return RestrictionType + */ + public function addExcludes(Excludes $value) + { + $value = $this->castValueIfNeeded("excludes", $value); + + if ($this->excludes === null) { + $this->excludes = array(); + } + + if (!is_array($this->excludes)) { + $this->excludes = array($this->excludes); + } + + $this->excludes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Excludes[] @@ -126,6 +155,27 @@ public function setExcludes(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Exists + * @return RestrictionType + */ + public function addExists(Exists $value) + { + $value = $this->castValueIfNeeded("exists", $value); + + if ($this->exists === null) { + $this->exists = array(); + } + + if (!is_array($this->exists)) { + $this->exists = array($this->exists); + } + + $this->exists[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Exists[] @@ -146,6 +196,27 @@ public function setExists(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsEqualTo + * @return RestrictionType + */ + public function addIsEqualTo(IsEqualTo $value) + { + $value = $this->castValueIfNeeded("isEqualTo", $value); + + if ($this->isEqualTo === null) { + $this->isEqualTo = array(); + } + + if (!is_array($this->isEqualTo)) { + $this->isEqualTo = array($this->isEqualTo); + } + + $this->isEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsEqualTo[] @@ -166,6 +237,27 @@ public function setIsEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsNotEqualTo + * @return RestrictionType + */ + public function addIsNotEqualTo(IsNotEqualTo $value) + { + $value = $this->castValueIfNeeded("isNotEqualTo", $value); + + if ($this->isNotEqualTo === null) { + $this->isNotEqualTo = array(); + } + + if (!is_array($this->isNotEqualTo)) { + $this->isNotEqualTo = array($this->isNotEqualTo); + } + + $this->isNotEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsNotEqualTo[] @@ -186,6 +278,27 @@ public function setIsNotEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsGreaterThan + * @return RestrictionType + */ + public function addIsGreaterThan(IsGreaterThan $value) + { + $value = $this->castValueIfNeeded("isGreaterThan", $value); + + if ($this->isGreaterThan === null) { + $this->isGreaterThan = array(); + } + + if (!is_array($this->isGreaterThan)) { + $this->isGreaterThan = array($this->isGreaterThan); + } + + $this->isGreaterThan[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsGreaterThan[] @@ -206,6 +319,27 @@ public function setIsGreaterThan(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsGreaterThanOrEqualTo + * @return RestrictionType + */ + public function addIsGreaterThanOrEqualTo(IsGreaterThanOrEqualTo $value) + { + $value = $this->castValueIfNeeded("isGreaterThanOrEqualTo", $value); + + if ($this->isGreaterThanOrEqualTo === null) { + $this->isGreaterThanOrEqualTo = array(); + } + + if (!is_array($this->isGreaterThanOrEqualTo)) { + $this->isGreaterThanOrEqualTo = array($this->isGreaterThanOrEqualTo); + } + + $this->isGreaterThanOrEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsGreaterThanOrEqualTo[] @@ -226,6 +360,27 @@ public function setIsGreaterThanOrEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsLessThan + * @return RestrictionType + */ + public function addIsLessThan(IsLessThan $value) + { + $value = $this->castValueIfNeeded("isLessThan", $value); + + if ($this->isLessThan === null) { + $this->isLessThan = array(); + } + + if (!is_array($this->isLessThan)) { + $this->isLessThan = array($this->isLessThan); + } + + $this->isLessThan[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsLessThan[] @@ -246,6 +401,27 @@ public function setIsLessThan(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IsLessThanOrEqualTo + * @return RestrictionType + */ + public function addIsLessThanOrEqualTo(IsLessThanOrEqualTo $value) + { + $value = $this->castValueIfNeeded("isLessThanOrEqualTo", $value); + + if ($this->isLessThanOrEqualTo === null) { + $this->isLessThanOrEqualTo = array(); + } + + if (!is_array($this->isLessThanOrEqualTo)) { + $this->isLessThanOrEqualTo = array($this->isLessThanOrEqualTo); + } + + $this->isLessThanOrEqualTo[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IsLessThanOrEqualTo[] @@ -266,6 +442,27 @@ public function setIsLessThanOrEqualTo(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value AndElement + * @return RestrictionType + */ + public function addAnd(AndElement $value) + { + $value = $this->castValueIfNeeded("and", $value); + + if ($this->and === null) { + $this->and = array(); + } + + if (!is_array($this->and)) { + $this->and = array($this->and); + } + + $this->and[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return AndElement[] @@ -286,6 +483,27 @@ public function setAnd(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value Not + * @return RestrictionType + */ + public function addNot(Not $value) + { + $value = $this->castValueIfNeeded("not", $value); + + if ($this->not === null) { + $this->not = array(); + } + + if (!is_array($this->not)) { + $this->not = array($this->not); + } + + $this->not[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return Not[] @@ -306,6 +524,27 @@ public function setNot(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value OrElement + * @return RestrictionType + */ + public function addOr(OrElement $value) + { + $value = $this->castValueIfNeeded("or", $value); + + if ($this->or === null) { + $this->or = array(); + } + + if (!is_array($this->or)) { + $this->or = array($this->or); + } + + $this->or[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return OrElement[] diff --git a/src/API/Type/RuleActionsType.php b/src/API/Type/RuleActionsType.php index ad4d1a41..15aa7d63 100644 --- a/src/API/Type/RuleActionsType.php +++ b/src/API/Type/RuleActionsType.php @@ -9,12 +9,6 @@ * * Rule actions * XSD Type: RuleActionsType - * - * @method RuleActionsType addAssignCategories(string $assignCategories) - * @method RuleActionsType addForwardAsAttachmentToRecipients(EmailAddressType $forwardAsAttachmentToRecipients) - * @method RuleActionsType addForwardToRecipients(EmailAddressType $forwardToRecipients) - * @method RuleActionsType addRedirectToRecipients(EmailAddressType $redirectToRecipients) - * @method RuleActionsType addSendSMSAlertToRecipients(EmailAddressType $sendSMSAlertToRecipients) */ class RuleActionsType extends Type { @@ -84,6 +78,27 @@ class RuleActionsType extends Type */ protected $stopProcessingRules = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RuleActionsType + */ + public function addAssignCategories($value) + { + $value = $this->castValueIfNeeded("assignCategories", $value); + + if ($this->assignCategories === null) { + $this->assignCategories = array(); + } + + if (!is_array($this->assignCategories)) { + $this->assignCategories = array($this->assignCategories); + } + + $this->assignCategories[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -153,6 +168,27 @@ public function setDelete($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return RuleActionsType + */ + public function addForwardAsAttachmentToRecipients(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("forwardAsAttachmentToRecipients", $value); + + if ($this->forwardAsAttachmentToRecipients === null) { + $this->forwardAsAttachmentToRecipients = array(); + } + + if (!is_array($this->forwardAsAttachmentToRecipients)) { + $this->forwardAsAttachmentToRecipients = array($this->forwardAsAttachmentToRecipients); + } + + $this->forwardAsAttachmentToRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] @@ -173,6 +209,27 @@ public function setForwardAsAttachmentToRecipients(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return RuleActionsType + */ + public function addForwardToRecipients(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("forwardToRecipients", $value); + + if ($this->forwardToRecipients === null) { + $this->forwardToRecipients = array(); + } + + if (!is_array($this->forwardToRecipients)) { + $this->forwardToRecipients = array($this->forwardToRecipients); + } + + $this->forwardToRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] @@ -291,6 +348,27 @@ public function setPermanentDelete($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return RuleActionsType + */ + public function addRedirectToRecipients(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("redirectToRecipients", $value); + + if ($this->redirectToRecipients === null) { + $this->redirectToRecipients = array(); + } + + if (!is_array($this->redirectToRecipients)) { + $this->redirectToRecipients = array($this->redirectToRecipients); + } + + $this->redirectToRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] @@ -311,6 +389,27 @@ public function setRedirectToRecipients(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return RuleActionsType + */ + public function addSendSMSAlertToRecipients(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("sendSMSAlertToRecipients", $value); + + if ($this->sendSMSAlertToRecipients === null) { + $this->sendSMSAlertToRecipients = array(); + } + + if (!is_array($this->sendSMSAlertToRecipients)) { + $this->sendSMSAlertToRecipients = array($this->sendSMSAlertToRecipients); + } + + $this->sendSMSAlertToRecipients[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] diff --git a/src/API/Type/RuleOperationErrorType.php b/src/API/Type/RuleOperationErrorType.php index a6b8670a..2647e3ca 100644 --- a/src/API/Type/RuleOperationErrorType.php +++ b/src/API/Type/RuleOperationErrorType.php @@ -9,8 +9,6 @@ * * * XSD Type: RuleOperationErrorType - * - * @method RuleOperationErrorType addValidationErrors(RuleValidationErrorType $validationErrors) */ class RuleOperationErrorType extends Type { @@ -45,6 +43,27 @@ public function setOperationIndex($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value RuleValidationErrorType + * @return RuleOperationErrorType + */ + public function addValidationErrors(RuleValidationErrorType $value) + { + $value = $this->castValueIfNeeded("validationErrors", $value); + + if ($this->validationErrors === null) { + $this->validationErrors = array(); + } + + if (!is_array($this->validationErrors)) { + $this->validationErrors = array($this->validationErrors); + } + + $this->validationErrors[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return RuleValidationErrorType[] diff --git a/src/API/Type/RulePredicatesType.php b/src/API/Type/RulePredicatesType.php index 05814822..11e191a1 100644 --- a/src/API/Type/RulePredicatesType.php +++ b/src/API/Type/RulePredicatesType.php @@ -9,19 +9,6 @@ * * Rule predicates, used as rule conditions or exceptions * XSD Type: RulePredicatesType - * - * @method RulePredicatesType addCategories(string $categories) - * @method RulePredicatesType addContainsBodyStrings(string $containsBodyStrings) - * @method RulePredicatesType addContainsHeaderStrings(string $containsHeaderStrings) - * @method RulePredicatesType addContainsRecipientStrings(string $containsRecipientStrings) - * @method RulePredicatesType addContainsSenderStrings(string $containsSenderStrings) - * @method RulePredicatesType addContainsSubjectOrBodyStrings(string $containsSubjectOrBodyStrings) - * @method RulePredicatesType addContainsSubjectStrings(string $containsSubjectStrings) - * @method RulePredicatesType addFromAddresses(EmailAddressType $fromAddresses) - * @method RulePredicatesType addFromConnectedAccounts(string $fromConnectedAccounts) - * @method RulePredicatesType addItemClasses(string $itemClasses) - * @method RulePredicatesType addMessageClassifications(string $messageClassifications) - * @method RulePredicatesType addSentToAddresses(EmailAddressType $sentToAddresses) */ class RulePredicatesType extends Type { @@ -196,6 +183,27 @@ class RulePredicatesType extends Type */ protected $withinSizeRange = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addCategories($value) + { + $value = $this->castValueIfNeeded("categories", $value); + + if ($this->categories === null) { + $this->categories = array(); + } + + if (!is_array($this->categories)) { + $this->categories = array($this->categories); + } + + $this->categories[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -216,6 +224,27 @@ public function setCategories(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addContainsBodyStrings($value) + { + $value = $this->castValueIfNeeded("containsBodyStrings", $value); + + if ($this->containsBodyStrings === null) { + $this->containsBodyStrings = array(); + } + + if (!is_array($this->containsBodyStrings)) { + $this->containsBodyStrings = array($this->containsBodyStrings); + } + + $this->containsBodyStrings[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -236,6 +265,27 @@ public function setContainsBodyStrings(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addContainsHeaderStrings($value) + { + $value = $this->castValueIfNeeded("containsHeaderStrings", $value); + + if ($this->containsHeaderStrings === null) { + $this->containsHeaderStrings = array(); + } + + if (!is_array($this->containsHeaderStrings)) { + $this->containsHeaderStrings = array($this->containsHeaderStrings); + } + + $this->containsHeaderStrings[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -256,6 +306,27 @@ public function setContainsHeaderStrings(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addContainsRecipientStrings($value) + { + $value = $this->castValueIfNeeded("containsRecipientStrings", $value); + + if ($this->containsRecipientStrings === null) { + $this->containsRecipientStrings = array(); + } + + if (!is_array($this->containsRecipientStrings)) { + $this->containsRecipientStrings = array($this->containsRecipientStrings); + } + + $this->containsRecipientStrings[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -276,6 +347,27 @@ public function setContainsRecipientStrings(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addContainsSenderStrings($value) + { + $value = $this->castValueIfNeeded("containsSenderStrings", $value); + + if ($this->containsSenderStrings === null) { + $this->containsSenderStrings = array(); + } + + if (!is_array($this->containsSenderStrings)) { + $this->containsSenderStrings = array($this->containsSenderStrings); + } + + $this->containsSenderStrings[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -296,6 +388,27 @@ public function setContainsSenderStrings(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addContainsSubjectOrBodyStrings($value) + { + $value = $this->castValueIfNeeded("containsSubjectOrBodyStrings", $value); + + if ($this->containsSubjectOrBodyStrings === null) { + $this->containsSubjectOrBodyStrings = array(); + } + + if (!is_array($this->containsSubjectOrBodyStrings)) { + $this->containsSubjectOrBodyStrings = array($this->containsSubjectOrBodyStrings); + } + + $this->containsSubjectOrBodyStrings[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -316,6 +429,27 @@ public function setContainsSubjectOrBodyStrings(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addContainsSubjectStrings($value) + { + $value = $this->castValueIfNeeded("containsSubjectStrings", $value); + + if ($this->containsSubjectStrings === null) { + $this->containsSubjectStrings = array(); + } + + if (!is_array($this->containsSubjectStrings)) { + $this->containsSubjectStrings = array($this->containsSubjectStrings); + } + + $this->containsSubjectStrings[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -356,6 +490,27 @@ public function setFlaggedForAction($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return RulePredicatesType + */ + public function addFromAddresses(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("fromAddresses", $value); + + if ($this->fromAddresses === null) { + $this->fromAddresses = array(); + } + + if (!is_array($this->fromAddresses)) { + $this->fromAddresses = array($this->fromAddresses); + } + + $this->fromAddresses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] @@ -376,6 +531,27 @@ public function setFromAddresses(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addFromConnectedAccounts($value) + { + $value = $this->castValueIfNeeded("fromConnectedAccounts", $value); + + if ($this->fromConnectedAccounts === null) { + $this->fromConnectedAccounts = array(); + } + + if (!is_array($this->fromConnectedAccounts)) { + $this->fromConnectedAccounts = array($this->fromConnectedAccounts); + } + + $this->fromConnectedAccounts[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -764,6 +940,27 @@ public function setIsVoicemail($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addItemClasses($value) + { + $value = $this->castValueIfNeeded("itemClasses", $value); + + if ($this->itemClasses === null) { + $this->itemClasses = array(); + } + + if (!is_array($this->itemClasses)) { + $this->itemClasses = array($this->itemClasses); + } + + $this->itemClasses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -784,6 +981,27 @@ public function setItemClasses(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return RulePredicatesType + */ + public function addMessageClassifications($value) + { + $value = $this->castValueIfNeeded("messageClassifications", $value); + + if ($this->messageClassifications === null) { + $this->messageClassifications = array(); + } + + if (!is_array($this->messageClassifications)) { + $this->messageClassifications = array($this->messageClassifications); + } + + $this->messageClassifications[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -891,6 +1109,27 @@ public function setSentOnlyToMe($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value EmailAddressType + * @return RulePredicatesType + */ + public function addSentToAddresses(EmailAddressType $value) + { + $value = $this->castValueIfNeeded("sentToAddresses", $value); + + if ($this->sentToAddresses === null) { + $this->sentToAddresses = array(); + } + + if (!is_array($this->sentToAddresses)) { + $this->sentToAddresses = array($this->sentToAddresses); + } + + $this->sentToAddresses[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return EmailAddressType[] diff --git a/src/API/Type/SerializedSecurityContextType.php b/src/API/Type/SerializedSecurityContextType.php index 361eb6ae..be5f894d 100644 --- a/src/API/Type/SerializedSecurityContextType.php +++ b/src/API/Type/SerializedSecurityContextType.php @@ -9,9 +9,6 @@ * * * XSD Type: SerializedSecurityContextType - * - * @method SerializedSecurityContextType addGroupSids(SidAndAttributesType $groupSids) - * @method SerializedSecurityContextType addRestrictedGroupSids(SidAndAttributesType $restrictedGroupSids) */ class SerializedSecurityContextType extends Type { @@ -56,6 +53,27 @@ public function setUserSid($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SidAndAttributesType + * @return SerializedSecurityContextType + */ + public function addGroupSids(SidAndAttributesType $value) + { + $value = $this->castValueIfNeeded("groupSids", $value); + + if ($this->groupSids === null) { + $this->groupSids = array(); + } + + if (!is_array($this->groupSids)) { + $this->groupSids = array($this->groupSids); + } + + $this->groupSids[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SidAndAttributesType[] @@ -76,6 +94,27 @@ public function setGroupSids(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SidAndAttributesType + * @return SerializedSecurityContextType + */ + public function addRestrictedGroupSids(SidAndAttributesType $value) + { + $value = $this->castValueIfNeeded("restrictedGroupSids", $value); + + if ($this->restrictedGroupSids === null) { + $this->restrictedGroupSids = array(); + } + + if (!is_array($this->restrictedGroupSids)) { + $this->restrictedGroupSids = array($this->restrictedGroupSids); + } + + $this->restrictedGroupSids[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SidAndAttributesType[] diff --git a/src/API/Type/StreamingSubscriptionRequestType.php b/src/API/Type/StreamingSubscriptionRequestType.php index ee7db46d..e900b265 100644 --- a/src/API/Type/StreamingSubscriptionRequestType.php +++ b/src/API/Type/StreamingSubscriptionRequestType.php @@ -9,8 +9,6 @@ * * * XSD Type: StreamingSubscriptionRequestType - * - * @method StreamingSubscriptionRequestType addEventTypes(string $eventTypes) */ class StreamingSubscriptionRequestType extends Type { @@ -79,6 +77,27 @@ public function setFolderIds(NonEmptyArrayOfBaseFolderIdsType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return StreamingSubscriptionRequestType + */ + public function addEventTypes($value) + { + $value = $this->castValueIfNeeded("eventTypes", $value); + + if ($this->eventTypes === null) { + $this->eventTypes = array(); + } + + if (!is_array($this->eventTypes)) { + $this->eventTypes = array($this->eventTypes); + } + + $this->eventTypes[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/SuggestionDayResultType.php b/src/API/Type/SuggestionDayResultType.php index 31314de1..6db44438 100644 --- a/src/API/Type/SuggestionDayResultType.php +++ b/src/API/Type/SuggestionDayResultType.php @@ -9,8 +9,6 @@ * * * XSD Type: SuggestionDayResult - * - * @method SuggestionDayResultType addSuggestionArray(SuggestionType $suggestionArray) */ class SuggestionDayResultType extends Type { @@ -74,6 +72,27 @@ public function setDayQuality($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SuggestionType + * @return SuggestionDayResultType + */ + public function addSuggestionArray(SuggestionType $value) + { + $value = $this->castValueIfNeeded("suggestionArray", $value); + + if ($this->suggestionArray === null) { + $this->suggestionArray = array(); + } + + if (!is_array($this->suggestionArray)) { + $this->suggestionArray = array($this->suggestionArray); + } + + $this->suggestionArray[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SuggestionType[] diff --git a/src/API/Type/SyncFolderHierarchyChangesType.php b/src/API/Type/SyncFolderHierarchyChangesType.php index 43bc0269..4a0d6904 100644 --- a/src/API/Type/SyncFolderHierarchyChangesType.php +++ b/src/API/Type/SyncFolderHierarchyChangesType.php @@ -9,10 +9,6 @@ * * * XSD Type: SyncFolderHierarchyChangesType - * - * @method SyncFolderHierarchyChangesType addCreate(SyncFolderHierarchyCreateOrUpdateType $create) - * @method SyncFolderHierarchyChangesType addUpdate(SyncFolderHierarchyCreateOrUpdateType $update) - * @method SyncFolderHierarchyChangesType addDelete(SyncFolderHierarchyDeleteType $delete) */ class SyncFolderHierarchyChangesType extends Type { @@ -32,6 +28,27 @@ class SyncFolderHierarchyChangesType extends Type */ protected $delete = null; + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderHierarchyCreateOrUpdateType + * @return SyncFolderHierarchyChangesType + */ + public function addCreate(SyncFolderHierarchyCreateOrUpdateType $value) + { + $value = $this->castValueIfNeeded("create", $value); + + if ($this->create === null) { + $this->create = array(); + } + + if (!is_array($this->create)) { + $this->create = array($this->create); + } + + $this->create[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderHierarchyCreateOrUpdateType[] @@ -52,6 +69,27 @@ public function setCreate(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderHierarchyCreateOrUpdateType + * @return SyncFolderHierarchyChangesType + */ + public function addUpdate(SyncFolderHierarchyCreateOrUpdateType $value) + { + $value = $this->castValueIfNeeded("update", $value); + + if ($this->update === null) { + $this->update = array(); + } + + if (!is_array($this->update)) { + $this->update = array($this->update); + } + + $this->update[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderHierarchyCreateOrUpdateType[] @@ -72,6 +110,27 @@ public function setUpdate(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderHierarchyDeleteType + * @return SyncFolderHierarchyChangesType + */ + public function addDelete(SyncFolderHierarchyDeleteType $value) + { + $value = $this->castValueIfNeeded("delete", $value); + + if ($this->delete === null) { + $this->delete = array(); + } + + if (!is_array($this->delete)) { + $this->delete = array($this->delete); + } + + $this->delete[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderHierarchyDeleteType[] diff --git a/src/API/Type/SyncFolderItemsChangesType.php b/src/API/Type/SyncFolderItemsChangesType.php index d47fb32b..8aaec7bf 100644 --- a/src/API/Type/SyncFolderItemsChangesType.php +++ b/src/API/Type/SyncFolderItemsChangesType.php @@ -9,11 +9,6 @@ * * * XSD Type: SyncFolderItemsChangesType - * - * @method SyncFolderItemsChangesType addCreate(SyncFolderItemsCreateOrUpdateType $create) - * @method SyncFolderItemsChangesType addUpdate(SyncFolderItemsCreateOrUpdateType $update) - * @method SyncFolderItemsChangesType addDelete(SyncFolderItemsDeleteType $delete) - * @method SyncFolderItemsChangesType addReadFlagChange(SyncFolderItemsReadFlagType $readFlagChange) */ class SyncFolderItemsChangesType extends Type { @@ -38,6 +33,27 @@ class SyncFolderItemsChangesType extends Type */ protected $readFlagChange = null; + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderItemsCreateOrUpdateType + * @return SyncFolderItemsChangesType + */ + public function addCreate(SyncFolderItemsCreateOrUpdateType $value) + { + $value = $this->castValueIfNeeded("create", $value); + + if ($this->create === null) { + $this->create = array(); + } + + if (!is_array($this->create)) { + $this->create = array($this->create); + } + + $this->create[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderItemsCreateOrUpdateType[] @@ -58,6 +74,27 @@ public function setCreate(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderItemsCreateOrUpdateType + * @return SyncFolderItemsChangesType + */ + public function addUpdate(SyncFolderItemsCreateOrUpdateType $value) + { + $value = $this->castValueIfNeeded("update", $value); + + if ($this->update === null) { + $this->update = array(); + } + + if (!is_array($this->update)) { + $this->update = array($this->update); + } + + $this->update[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderItemsCreateOrUpdateType[] @@ -78,6 +115,27 @@ public function setUpdate(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderItemsDeleteType + * @return SyncFolderItemsChangesType + */ + public function addDelete(SyncFolderItemsDeleteType $value) + { + $value = $this->castValueIfNeeded("delete", $value); + + if ($this->delete === null) { + $this->delete = array(); + } + + if (!is_array($this->delete)) { + $this->delete = array($this->delete); + } + + $this->delete[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderItemsDeleteType[] @@ -98,6 +156,27 @@ public function setDelete(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value SyncFolderItemsReadFlagType + * @return SyncFolderItemsChangesType + */ + public function addReadFlagChange(SyncFolderItemsReadFlagType $value) + { + $value = $this->castValueIfNeeded("readFlagChange", $value); + + if ($this->readFlagChange === null) { + $this->readFlagChange = array(); + } + + if (!is_array($this->readFlagChange)) { + $this->readFlagChange = array($this->readFlagChange); + } + + $this->readFlagChange[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return SyncFolderItemsReadFlagType[] diff --git a/src/API/Type/TaskType.php b/src/API/Type/TaskType.php index c83595c1..2eb6ffa2 100644 --- a/src/API/Type/TaskType.php +++ b/src/API/Type/TaskType.php @@ -7,9 +7,6 @@ * * * XSD Type: TaskType - * - * @method TaskType addCompanies(string $companies) - * @method TaskType addContacts(string $contacts) */ class TaskType extends ItemType { @@ -211,6 +208,27 @@ public function setChangeCount($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return TaskType + */ + public function addCompanies($value) + { + $value = $this->castValueIfNeeded("companies", $value); + + if ($this->companies === null) { + $this->companies = array(); + } + + if (!is_array($this->companies)) { + $this->companies = array($this->companies); + } + + $this->companies[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] @@ -251,6 +269,27 @@ public function setCompleteDate(\DateTime|string $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return TaskType + */ + public function addContacts($value) + { + $value = $this->castValueIfNeeded("contacts", $value); + + if ($this->contacts === null) { + $this->contacts = array(); + } + + if (!is_array($this->contacts)) { + $this->contacts = array($this->contacts); + } + + $this->contacts[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/TimeZoneDefinitionType.php b/src/API/Type/TimeZoneDefinitionType.php index 73842e36..290e4aa4 100644 --- a/src/API/Type/TimeZoneDefinitionType.php +++ b/src/API/Type/TimeZoneDefinitionType.php @@ -9,9 +9,6 @@ * * * XSD Type: TimeZoneDefinitionType - * - * @method TimeZoneDefinitionType addPeriods(PeriodType $periods) - * @method TimeZoneDefinitionType addTransitionsGroups(ArrayOfTransitionsType $transitionsGroups) */ class TimeZoneDefinitionType extends Type { @@ -81,6 +78,27 @@ public function setName($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value PeriodType + * @return TimeZoneDefinitionType + */ + public function addPeriods(PeriodType $value) + { + $value = $this->castValueIfNeeded("periods", $value); + + if ($this->periods === null) { + $this->periods = array(); + } + + if (!is_array($this->periods)) { + $this->periods = array($this->periods); + } + + $this->periods[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return PeriodType[] @@ -101,6 +119,27 @@ public function setPeriods(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ArrayOfTransitionsType + * @return TimeZoneDefinitionType + */ + public function addTransitionsGroups(ArrayOfTransitionsType $value) + { + $value = $this->castValueIfNeeded("transitionsGroups", $value); + + if ($this->transitionsGroups === null) { + $this->transitionsGroups = array(); + } + + if (!is_array($this->transitionsGroups)) { + $this->transitionsGroups = array($this->transitionsGroups); + } + + $this->transitionsGroups[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ArrayOfTransitionsType[] diff --git a/src/API/Type/TwoOperandExpressionType.php b/src/API/Type/TwoOperandExpressionType.php index d9ec2cad..a83c79da 100644 --- a/src/API/Type/TwoOperandExpressionType.php +++ b/src/API/Type/TwoOperandExpressionType.php @@ -7,10 +7,6 @@ * * * XSD Type: TwoOperandExpressionType - * - * @method TwoOperandExpressionType addFieldURI(FieldURI $fieldURI) - * @method TwoOperandExpressionType addIndexedFieldURI(IndexedFieldURI $indexedFieldURI) - * @method TwoOperandExpressionType addExtendedFieldURI(ExtendedFieldURI $extendedFieldURI) */ class TwoOperandExpressionType extends SearchExpressionType { @@ -35,6 +31,27 @@ class TwoOperandExpressionType extends SearchExpressionType */ protected $fieldURIOrConstant = null; + /** + * @autogenerated This method is safe to replace + * @param $value FieldURI + * @return TwoOperandExpressionType + */ + public function addFieldURI(FieldURI $value) + { + $value = $this->castValueIfNeeded("fieldURI", $value); + + if ($this->fieldURI === null) { + $this->fieldURI = array(); + } + + if (!is_array($this->fieldURI)) { + $this->fieldURI = array($this->fieldURI); + } + + $this->fieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return FieldURI[] @@ -55,6 +72,27 @@ public function setFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value IndexedFieldURI + * @return TwoOperandExpressionType + */ + public function addIndexedFieldURI(IndexedFieldURI $value) + { + $value = $this->castValueIfNeeded("indexedFieldURI", $value); + + if ($this->indexedFieldURI === null) { + $this->indexedFieldURI = array(); + } + + if (!is_array($this->indexedFieldURI)) { + $this->indexedFieldURI = array($this->indexedFieldURI); + } + + $this->indexedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return IndexedFieldURI[] @@ -75,6 +113,27 @@ public function setIndexedFieldURI(array $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value ExtendedFieldURI + * @return TwoOperandExpressionType + */ + public function addExtendedFieldURI(ExtendedFieldURI $value) + { + $value = $this->castValueIfNeeded("extendedFieldURI", $value); + + if ($this->extendedFieldURI === null) { + $this->extendedFieldURI = array(); + } + + if (!is_array($this->extendedFieldURI)) { + $this->extendedFieldURI = array($this->extendedFieldURI); + } + + $this->extendedFieldURI[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return ExtendedFieldURI[] diff --git a/src/API/Type/UserConfigurationDictionaryObjectType.php b/src/API/Type/UserConfigurationDictionaryObjectType.php index 7e3286dd..54b747f9 100644 --- a/src/API/Type/UserConfigurationDictionaryObjectType.php +++ b/src/API/Type/UserConfigurationDictionaryObjectType.php @@ -9,8 +9,6 @@ * * * XSD Type: UserConfigurationDictionaryObjectType - * - * @method UserConfigurationDictionaryObjectType addValue(string $value) */ class UserConfigurationDictionaryObjectType extends Type { @@ -45,6 +43,27 @@ public function setType($value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return UserConfigurationDictionaryObjectType + */ + public function addValue($value) + { + $value = $this->castValueIfNeeded("value", $value); + + if ($this->value === null) { + $this->value = array(); + } + + if (!is_array($this->value)) { + $this->value = array($this->value); + } + + $this->value[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/UserConfigurationType.php b/src/API/Type/UserConfigurationType.php index b270bbcb..aff31641 100644 --- a/src/API/Type/UserConfigurationType.php +++ b/src/API/Type/UserConfigurationType.php @@ -9,8 +9,6 @@ * * * XSD Type: UserConfigurationType - * - * @method UserConfigurationType addDictionary(UserConfigurationDictionaryEntryType $dictionary) */ class UserConfigurationType extends Type { @@ -80,6 +78,27 @@ public function setItemId(ItemIdType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value UserConfigurationDictionaryEntryType + * @return UserConfigurationType + */ + public function addDictionary(UserConfigurationDictionaryEntryType $value) + { + $value = $this->castValueIfNeeded("dictionary", $value); + + if ($this->dictionary === null) { + $this->dictionary = array(); + } + + if (!is_array($this->dictionary)) { + $this->dictionary = array($this->dictionary); + } + + $this->dictionary[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return UserConfigurationDictionaryEntryType[] diff --git a/src/API/Type/WeeklyRecurrencePatternType.php b/src/API/Type/WeeklyRecurrencePatternType.php index 86059119..2b2428a8 100644 --- a/src/API/Type/WeeklyRecurrencePatternType.php +++ b/src/API/Type/WeeklyRecurrencePatternType.php @@ -7,8 +7,6 @@ * * * XSD Type: WeeklyRecurrencePatternType - * - * @method WeeklyRecurrencePatternType addDaysOfWeek(string $daysOfWeek) */ class WeeklyRecurrencePatternType extends IntervalRecurrencePatternBaseType { @@ -23,6 +21,27 @@ class WeeklyRecurrencePatternType extends IntervalRecurrencePatternBaseType */ protected $firstDayOfWeek = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return WeeklyRecurrencePatternType + */ + public function addDaysOfWeek($value) + { + $value = $this->castValueIfNeeded("daysOfWeek", $value); + + if ($this->daysOfWeek === null) { + $this->daysOfWeek = array(); + } + + if (!is_array($this->daysOfWeek)) { + $this->daysOfWeek = array($this->daysOfWeek); + } + + $this->daysOfWeek[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/API/Type/WorkingHoursType.php b/src/API/Type/WorkingHoursType.php index 9c528191..c8de07e1 100644 --- a/src/API/Type/WorkingHoursType.php +++ b/src/API/Type/WorkingHoursType.php @@ -9,8 +9,6 @@ * * * XSD Type: WorkingHours - * - * @method WorkingHoursType addWorkingPeriodArray(WorkingPeriodType $workingPeriodArray) */ class WorkingHoursType extends Type { @@ -45,6 +43,27 @@ public function setTimeZone(SerializableTimeZoneType $value) return $this; } + /** + * @autogenerated This method is safe to replace + * @param $value WorkingPeriodType + * @return WorkingHoursType + */ + public function addWorkingPeriodArray(WorkingPeriodType $value) + { + $value = $this->castValueIfNeeded("workingPeriodArray", $value); + + if ($this->workingPeriodArray === null) { + $this->workingPeriodArray = array(); + } + + if (!is_array($this->workingPeriodArray)) { + $this->workingPeriodArray = array($this->workingPeriodArray); + } + + $this->workingPeriodArray[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return WorkingPeriodType[] diff --git a/src/API/Type/WorkingPeriodType.php b/src/API/Type/WorkingPeriodType.php index 3a3c03c5..2ee84e59 100644 --- a/src/API/Type/WorkingPeriodType.php +++ b/src/API/Type/WorkingPeriodType.php @@ -9,8 +9,6 @@ * * * XSD Type: WorkingPeriod - * - * @method WorkingPeriodType addDayOfWeek(string $dayOfWeek) */ class WorkingPeriodType extends Type { @@ -30,6 +28,27 @@ class WorkingPeriodType extends Type */ protected $endTimeInMinutes = null; + /** + * @autogenerated This method is safe to replace + * @param $value string + * @return WorkingPeriodType + */ + public function addDayOfWeek($value) + { + $value = $this->castValueIfNeeded("dayOfWeek", $value); + + if ($this->dayOfWeek === null) { + $this->dayOfWeek = array(); + } + + if (!is_array($this->dayOfWeek)) { + $this->dayOfWeek = array($this->dayOfWeek); + } + + $this->dayOfWeek[] = $value; + return $this; + } + /** * @autogenerated This method is safe to replace * @return string[] diff --git a/src/Generator/ClassGenerator.php b/src/Generator/ClassGenerator.php index f71072dc..feebd045 100644 --- a/src/Generator/ClassGenerator.php +++ b/src/Generator/ClassGenerator.php @@ -190,6 +190,7 @@ protected function handleAdder(Generator\ClassGenerator $generator, PHPProperty $namespace = explode("\\", $type); $namespaceClass = array_pop($namespace); $namespace = implode("\\", $namespace); + if ($namespace == $class->getNamespace() || $namespace == "\\" . $class->getNamespace()) { $type = $namespaceClass; } @@ -197,17 +198,38 @@ protected function handleAdder(Generator\ClassGenerator $generator, PHPProperty $type = substr($type, 0, strlen($type) - 2); } - $fullName = "method {$class->getName()} $name($type \${$prop->getName()})"; + if ($generator->hasMethod($name)) { + if (!$this->isMethodAutoGenerated($generator->getMethod($name))) { + return; + } - $docblock = $generator->getDocBlock(); - $docblock->setWordWrap(false); + $generator->removeMethod($name); + } - $tag = new Generator\DocBlock\Tag(); - $tag->setName($fullName); + $generatedMethod = (new Generator\MethodGenerator($name)) + ->setParameters([['name' => 'value', 'type' => $type]]) + ->setBody(" + \$value = \$this->castValueIfNeeded(\"{$prop->getName()}\", \$value); - $docblock->setTag($tag); + if (\$this->{$prop->getName()} === null) { + \$this->{$prop->getName()} = array(); + } - return; + if (!is_array(\$this->{$prop->getName()})) { + \$this->{$prop->getName()} = array(\$this->{$prop->getName()}); + }\n\n\$this->{$prop->getName()}[] = \$value;\nreturn \$this; + ") + ->setDocBlock( + (new DocBlockGenerator()) + ->setTags([ + new Generator\DocBlock\Tag\GenericTag("@autogenerated", "This method is safe to replace"), + new Generator\DocBlock\Tag\GenericTag("@param", "\$value $type"), + new Generator\DocBlock\Tag\GenericTag("@return", $class->getName()) + ]) + ) + ; + + $generator->addMethodFromGenerator($generatedMethod); } protected function handleIs(Generator\ClassGenerator $generator, PHPProperty $prop, PHPClass $class) @@ -434,6 +456,10 @@ protected function getPropertyType($property) $type = $property->getType(); $returnType = ""; + if ($property->getName() === "lang" && $type->getName() === "LangAType") { + return "string"; + } + if ($type && $type instanceof PHPClassOf) { $tt = $type->getArg()->getType(); $returnType = $this->getPhpType($tt) . "[]";