options['chatFriendlyName'] = $chatFriendlyName; $this->options['customerFriendlyName'] = $customerFriendlyName; $this->options['preEngagementData'] = $preEngagementData; } /** * The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example. * * @param string $chatFriendlyName The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example. * @return $this Fluent Builder */ public function setChatFriendlyName(string $chatFriendlyName): self { $this->options['chatFriendlyName'] = $chatFriendlyName; return $this; } /** * The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example. * * @param string $customerFriendlyName The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example. * @return $this Fluent Builder */ public function setCustomerFriendlyName(string $customerFriendlyName): self { $this->options['customerFriendlyName'] = $customerFriendlyName; return $this; } /** * The pre-engagement data. * * @param string $preEngagementData The pre-engagement data. * @return $this Fluent Builder */ public function setPreEngagementData(string $preEngagementData): self { $this->options['preEngagementData'] = $preEngagementData; 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.FlexApi.V2.CreateWebChannelsOptions ' . $options . ']'; } }