ok
Direktori : /home2/selectio/www/myclassicfit.com-1/vendor/twilio/sdk/src/Twilio/Rest/Chat/V3/ |
Current File : /home2/selectio/www/myclassicfit.com-1/vendor/twilio/sdk/src/Twilio/Rest/Chat/V3/ChannelOptions.php |
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Chat\V3; use Twilio\Options; use Twilio\Values; abstract class ChannelOptions { /** * @param string $type The Type for this Channel to migrate to. * @param string $messagingServiceSid The unique ID of the Messaging Service * this channel belongs to. * @param string $xTwilioWebhookEnabled The X-Twilio-Webhook-Enabled HTTP * request header * @return UpdateChannelOptions Options builder */ public static function update(string $type = Values::NONE, string $messagingServiceSid = Values::NONE, string $xTwilioWebhookEnabled = Values::NONE): UpdateChannelOptions { return new UpdateChannelOptions($type, $messagingServiceSid, $xTwilioWebhookEnabled); } } class UpdateChannelOptions extends Options { /** * @param string $type The Type for this Channel to migrate to. * @param string $messagingServiceSid The unique ID of the Messaging Service * this channel belongs to. * @param string $xTwilioWebhookEnabled The X-Twilio-Webhook-Enabled HTTP * request header */ public function __construct(string $type = Values::NONE, string $messagingServiceSid = Values::NONE, string $xTwilioWebhookEnabled = Values::NONE) { $this->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 . ']'; } }