Skip to content

Commit

Permalink
Adding a concrete method for is* methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Garethp committed Aug 23, 2024
1 parent 1f0e202 commit ad24ca0
Show file tree
Hide file tree
Showing 112 changed files with 7,389 additions and 476 deletions.
23 changes: 21 additions & 2 deletions src/API/Message/AddDelegateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
*
* XSD Type: AddDelegateType
*
* @method AddDelegateType addDelegateUsers(\garethp\ews\API\Type\DelegateUserType $delegateUsers)
*/
class AddDelegateType extends BaseDelegateType
{
Expand All @@ -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[]
Expand Down
23 changes: 21 additions & 2 deletions src/API/Message/ApplyConversationActionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
*
* XSD Type: ApplyConversationActionType
*
* @method ApplyConversationActionType addConversationActions(\garethp\ews\API\Type\ConversationActionType $conversationActions)
*/
class ApplyConversationActionType extends BaseRequestType
{
Expand All @@ -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[]
Expand Down
Loading

0 comments on commit ad24ca0

Please sign in to comment.