/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/ChannelContext.php (2124B)
solution = ['serviceSid' => $serviceSid, 'sid' => $sid, ];
$this->uri = '/Services/' . \rawurlencode($serviceSid) . '/Channels/' . \rawurlencode($sid) . '';
}
/**
* Update the ChannelInstance
*
* @param array|Options $options Optional Arguments
* @return ChannelInstance Updated ChannelInstance
* @throws TwilioException When an HTTP error occurs.
*/
public function update(array $options = []): ChannelInstance {
$options = new Values($options);
$data = Values::of([
'Type' => $options['type'],
'MessagingServiceSid' => $options['messagingServiceSid'],
]);
$headers = Values::of(['X-Twilio-Webhook-Enabled' => $options['xTwilioWebhookEnabled'], ]);
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
return new ChannelInstance(
$this->version,
$payload,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$context = [];
foreach ($this->solution as $key => $value) {
$context[] = "$key=$value";
}
return '[Twilio.Chat.V3.ChannelContext ' . \implode(' ', $context) . ']';
}
}