Skip to content

Commit

Permalink
Generate concrete methods for setters rather than using the MagicMeth…
Browse files Browse the repository at this point in the history
…odsTrait
  • Loading branch information
Garethp committed Aug 23, 2024
1 parent 084480f commit 7c23bf0
Show file tree
Hide file tree
Showing 331 changed files with 15,721 additions and 2,375 deletions.
24 changes: 22 additions & 2 deletions src/API/Message/AddDelegateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* XSD Type: AddDelegateType
*
* @method AddDelegateType addDelegateUsers(\garethp\ews\API\Type\DelegateUserType $delegateUsers)
* @method AddDelegateType setDelegateUsers(array $delegateUsers)
* @method AddDelegateType setDeliverMeetingRequests(string $deliverMeetingRequests)
*/
class AddDelegateType extends BaseDelegateType
{
Expand Down Expand Up @@ -40,4 +38,26 @@ public function getDeliverMeetingRequests()
{
return $this->deliverMeetingRequests;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\DelegateUserType[]
* @return AddDelegateType
*/
public function setDelegateUsers(array $value)
{
$this->delegateUsers = $this->castValueIfNeeded("delegateUsers", $value);
return $this;
}

/**
* @autogenerated This method is safe to replace
* @param $value string
* @return AddDelegateType
*/
public function setDeliverMeetingRequests($value)
{
$this->deliverMeetingRequests = $this->castValueIfNeeded("deliverMeetingRequests", $value);
return $this;
}
}
12 changes: 11 additions & 1 deletion src/API/Message/ApplyConversationActionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* XSD Type: ApplyConversationActionType
*
* @method ApplyConversationActionType addConversationActions(\garethp\ews\API\Type\ConversationActionType $conversationActions)
* @method ApplyConversationActionType setConversationActions(array $conversationActions)
*/
class ApplyConversationActionType extends BaseRequestType
{
Expand All @@ -26,4 +25,15 @@ public function getConversationActions()
{
return $this->conversationActions;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\ConversationActionType[]
* @return ApplyConversationActionType
*/
public function setConversationActions(array $value)
{
$this->conversationActions = $this->castValueIfNeeded("conversationActions", $value);
return $this;
}
}
540 changes: 495 additions & 45 deletions src/API/Message/ArrayOfResponseMessagesType.php

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions src/API/Message/AttachmentInfoResponseMessageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
*
* XSD Type: AttachmentInfoResponseMessageType
*
* @method AttachmentInfoResponseMessageType setAttachments(\garethp\ews\API\Type\ArrayOfAttachmentsType $attachments)
*/
class AttachmentInfoResponseMessageType extends ResponseMessageType
{
Expand All @@ -25,4 +23,15 @@ public function getAttachments()
{
return $this->attachments;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\ArrayOfAttachmentsType
* @return AttachmentInfoResponseMessageType
*/
public function setAttachments(\garethp\ews\API\Type\ArrayOfAttachmentsType $value)
{
$this->attachments = $this->castValueIfNeeded("attachments", $value);
return $this;
}
}
12 changes: 11 additions & 1 deletion src/API/Message/BaseDelegateResponseMessageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* XSD Type: BaseDelegateResponseMessageType
*
* @method BaseDelegateResponseMessageType addResponseMessages(DelegateUserResponseMessageType $responseMessages)
* @method BaseDelegateResponseMessageType setResponseMessages(array $responseMessages)
*/
class BaseDelegateResponseMessageType extends ResponseMessageType
{
Expand All @@ -26,4 +25,15 @@ public function getResponseMessages()
{
return $this->responseMessages;
}

/**
* @autogenerated This method is safe to replace
* @param $value DelegateUserResponseMessageType[]
* @return BaseDelegateResponseMessageType
*/
public function setResponseMessages(array $value)
{
$this->responseMessages = $this->castValueIfNeeded("responseMessages", $value);
return $this;
}
}
13 changes: 11 additions & 2 deletions src/API/Message/BaseDelegateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
*
* XSD Type: BaseDelegateType
*
* @method BaseDelegateType setMailbox(\garethp\ews\API\Type\EmailAddressType $mailbox)
*/
class BaseDelegateType extends BaseRequestType
{
Expand All @@ -25,4 +23,15 @@ public function getMailbox()
{
return $this->mailbox;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\EmailAddressType
* @return BaseDelegateType
*/
public function setMailbox(\garethp\ews\API\Type\EmailAddressType $value)
{
$this->mailbox = $this->castValueIfNeeded("mailbox", $value);
return $this;
}
}
25 changes: 22 additions & 3 deletions src/API/Message/BaseMoveCopyFolderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
*
*
* XSD Type: BaseMoveCopyFolderType
*
* @method BaseMoveCopyFolderType setToFolderId(\garethp\ews\API\Type\TargetFolderIdType $toFolderId)
* @method BaseMoveCopyFolderType setFolderIds(\garethp\ews\API\Type\NonEmptyArrayOfBaseFolderIdsType $folderIds)
*/
class BaseMoveCopyFolderType extends BaseRequestType
{
Expand Down Expand Up @@ -39,4 +36,26 @@ public function getFolderIds()
{
return $this->folderIds;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\TargetFolderIdType
* @return BaseMoveCopyFolderType
*/
public function setToFolderId(\garethp\ews\API\Type\TargetFolderIdType $value)
{
$this->toFolderId = $this->castValueIfNeeded("toFolderId", $value);
return $this;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\NonEmptyArrayOfBaseFolderIdsType
* @return BaseMoveCopyFolderType
*/
public function setFolderIds(\garethp\ews\API\Type\NonEmptyArrayOfBaseFolderIdsType $value)
{
$this->folderIds = $this->castValueIfNeeded("folderIds", $value);
return $this;
}
}
43 changes: 36 additions & 7 deletions src/API/Message/BaseMoveCopyItemType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
*
*
* XSD Type: BaseMoveCopyItemType
*
* @method BaseMoveCopyItemType setToFolderId(\garethp\ews\API\Type\TargetFolderIdType $toFolderId)
* @method BaseMoveCopyItemType setItemIds(\garethp\ews\API\Type\NonEmptyArrayOfBaseItemIdsType $itemIds)
* @method BaseMoveCopyItemType setReturnNewItemIds(boolean $returnNewItemIds)
*/
class BaseMoveCopyItemType extends BaseRequestType
{
Expand Down Expand Up @@ -46,6 +42,36 @@ public function getItemIds()
return $this->itemIds;
}

/**
* @return boolean
*/
public function getReturnNewItemIds()
{
return $this->returnNewItemIds;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\TargetFolderIdType
* @return BaseMoveCopyItemType
*/
public function setToFolderId(\garethp\ews\API\Type\TargetFolderIdType $value)
{
$this->toFolderId = $this->castValueIfNeeded("toFolderId", $value);
return $this;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\NonEmptyArrayOfBaseItemIdsType
* @return BaseMoveCopyItemType
*/
public function setItemIds(\garethp\ews\API\Type\NonEmptyArrayOfBaseItemIdsType $value)
{
$this->itemIds = $this->castValueIfNeeded("itemIds", $value);
return $this;
}

/**
* @returns bool
*/
Expand All @@ -55,10 +81,13 @@ public function isReturnNewItemIds()
}

/**
* @return boolean
* @autogenerated This method is safe to replace
* @param $value bool
* @return BaseMoveCopyItemType
*/
public function getReturnNewItemIds()
public function setReturnNewItemIds($value)
{
return $this->returnNewItemIds;
$this->returnNewItemIds = $this->castValueIfNeeded("returnNewItemIds", $value);
return $this;
}
}
13 changes: 11 additions & 2 deletions src/API/Message/BaseResponseMessageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
*
* XSD Type: BaseResponseMessageType
*
* @method BaseResponseMessageType setResponseMessages(ArrayOfResponseMessagesType $responseMessages)
*/
class BaseResponseMessageType extends Message
{
Expand All @@ -27,4 +25,15 @@ public function getResponseMessages()
{
return $this->responseMessages;
}

/**
* @autogenerated This method is safe to replace
* @param $value ArrayOfResponseMessagesType
* @return BaseResponseMessageType
*/
public function setResponseMessages(ArrayOfResponseMessagesType $value)
{
$this->responseMessages = $this->castValueIfNeeded("responseMessages", $value);
return $this;
}
}
13 changes: 11 additions & 2 deletions src/API/Message/ConvertIdResponseMessageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* Response Message for a single id conversion in the ConvertId web method. Note
* that the AlternateId element will be missing in the case of an error.
* XSD Type: ConvertIdResponseMessageType
*
* @method ConvertIdResponseMessageType setAlternateId(\garethp\ews\API\Type\AlternateIdBaseType $alternateId)
*/
class ConvertIdResponseMessageType extends ResponseMessageType
{
Expand All @@ -26,4 +24,15 @@ public function getAlternateId()
{
return $this->alternateId;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\AlternateIdBaseType
* @return ConvertIdResponseMessageType
*/
public function setAlternateId(\garethp\ews\API\Type\AlternateIdBaseType $value)
{
$this->alternateId = $this->castValueIfNeeded("alternateId", $value);
return $this;
}
}
25 changes: 22 additions & 3 deletions src/API/Message/ConvertIdType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
* Converts the passed source ids into the destination format. Change keys are not
* returned.
* XSD Type: ConvertIdType
*
* @method ConvertIdType setDestinationFormat(string $destinationFormat)
* @method ConvertIdType setSourceIds(\garethp\ews\API\Type\NonEmptyArrayOfAlternateIdsType $sourceIds)
*/
class ConvertIdType extends BaseRequestType
{
Expand Down Expand Up @@ -40,4 +37,26 @@ public function getSourceIds()
{
return $this->sourceIds;
}

/**
* @autogenerated This method is safe to replace
* @param $value string
* @return ConvertIdType
*/
public function setDestinationFormat($value)
{
$this->destinationFormat = $this->castValueIfNeeded("destinationFormat", $value);
return $this;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\NonEmptyArrayOfAlternateIdsType
* @return ConvertIdType
*/
public function setSourceIds(\garethp\ews\API\Type\NonEmptyArrayOfAlternateIdsType $value)
{
$this->sourceIds = $this->castValueIfNeeded("sourceIds", $value);
return $this;
}
}
25 changes: 22 additions & 3 deletions src/API/Message/CreateAttachmentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
*
*
* XSD Type: CreateAttachmentType
*
* @method CreateAttachmentType setParentItemId(\garethp\ews\API\Type\ItemIdType $parentItemId)
* @method CreateAttachmentType setAttachments(\garethp\ews\API\Type\NonEmptyArrayOfAttachmentsType $attachments)
*/
class CreateAttachmentType extends BaseRequestType
{
Expand Down Expand Up @@ -39,4 +36,26 @@ public function getAttachments()
{
return $this->attachments;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\ItemIdType
* @return CreateAttachmentType
*/
public function setParentItemId(\garethp\ews\API\Type\ItemIdType $value)
{
$this->parentItemId = $this->castValueIfNeeded("parentItemId", $value);
return $this;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\NonEmptyArrayOfAttachmentsType
* @return CreateAttachmentType
*/
public function setAttachments(\garethp\ews\API\Type\NonEmptyArrayOfAttachmentsType $value)
{
$this->attachments = $this->castValueIfNeeded("attachments", $value);
return $this;
}
}
25 changes: 22 additions & 3 deletions src/API/Message/CreateFolderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
*
*
* XSD Type: CreateFolderType
*
* @method CreateFolderType setParentFolderId(\garethp\ews\API\Type\TargetFolderIdType $parentFolderId)
* @method CreateFolderType setFolders(\garethp\ews\API\Type\NonEmptyArrayOfFoldersType $folders)
*/
class CreateFolderType extends BaseRequestType
{
Expand Down Expand Up @@ -39,4 +36,26 @@ public function getFolders()
{
return $this->folders;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\TargetFolderIdType
* @return CreateFolderType
*/
public function setParentFolderId(\garethp\ews\API\Type\TargetFolderIdType $value)
{
$this->parentFolderId = $this->castValueIfNeeded("parentFolderId", $value);
return $this;
}

/**
* @autogenerated This method is safe to replace
* @param $value \garethp\ews\API\Type\NonEmptyArrayOfFoldersType
* @return CreateFolderType
*/
public function setFolders(\garethp\ews\API\Type\NonEmptyArrayOfFoldersType $value)
{
$this->folders = $this->castValueIfNeeded("folders", $value);
return $this;
}
}
Loading

0 comments on commit 7c23bf0

Please sign in to comment.