/home/techb158/dev.balacoffee.com/vendor/twilio/sdk/src/Twilio/Rest/Chat/V3
Edit: /home/techb158/dev.balacoffee.com/vendor/twilio/sdk/src/Twilio/Rest/Chat/V3/ChannelOptions.php (3296B)
options['type'] = $type;
$this->options['messagingServiceSid'] = $messagingServiceSid;
$this->options['xTwilioWebhookEnabled'] = $xTwilioWebhookEnabled;
}
/**
* TThe Type for this Channel to migrate to. Can only be `private`. Migration to 'public' is not allowed.
*
* @param string $type The Type for this Channel to migrate to.
* @return $this Fluent Builder
*/
public function setType(string $type): self {
$this->options['type'] = $type;
return $this;
}
/**
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this channel belongs to.
*
* @param string $messagingServiceSid The unique ID of the Messaging Service
* this channel belongs to.
* @return $this Fluent Builder
*/
public function setMessagingServiceSid(string $messagingServiceSid): self {
$this->options['messagingServiceSid'] = $messagingServiceSid;
return $this;
}
/**
* The X-Twilio-Webhook-Enabled HTTP request header
*
* @param string $xTwilioWebhookEnabled The X-Twilio-Webhook-Enabled HTTP
* request header
* @return $this Fluent Builder
*/
public function setXTwilioWebhookEnabled(string $xTwilioWebhookEnabled): self {
$this->options['xTwilioWebhookEnabled'] = $xTwilioWebhookEnabled;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = \http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Chat.V3.UpdateChannelOptions ' . $options . ']';
}
}