version = 'v1'; } protected function getAssessments(): AssessmentsList { if (!$this->_assessments) { $this->_assessments = new AssessmentsList($this); } return $this->_assessments; } protected function getChannel(): ChannelList { if (!$this->_channel) { $this->_channel = new ChannelList($this); } return $this->_channel; } protected function getConfiguration(): ConfigurationList { if (!$this->_configuration) { $this->_configuration = new ConfigurationList($this); } return $this->_configuration; } protected function getFlexFlow(): FlexFlowList { if (!$this->_flexFlow) { $this->_flexFlow = new FlexFlowList($this); } return $this->_flexFlow; } protected function getInsightsAssessmentsComment(): InsightsAssessmentsCommentList { if (!$this->_insightsAssessmentsComment) { $this->_insightsAssessmentsComment = new InsightsAssessmentsCommentList($this); } return $this->_insightsAssessmentsComment; } protected function getInsightsConversations(): InsightsConversationsList { if (!$this->_insightsConversations) { $this->_insightsConversations = new InsightsConversationsList($this); } return $this->_insightsConversations; } protected function getInsightsQuestionnaires(): InsightsQuestionnairesList { if (!$this->_insightsQuestionnaires) { $this->_insightsQuestionnaires = new InsightsQuestionnairesList($this); } return $this->_insightsQuestionnaires; } protected function getInsightsQuestionnairesCategory(): InsightsQuestionnairesCategoryList { if (!$this->_insightsQuestionnairesCategory) { $this->_insightsQuestionnairesCategory = new InsightsQuestionnairesCategoryList($this); } return $this->_insightsQuestionnairesCategory; } protected function getInsightsQuestionnairesQuestion(): InsightsQuestionnairesQuestionList { if (!$this->_insightsQuestionnairesQuestion) { $this->_insightsQuestionnairesQuestion = new InsightsQuestionnairesQuestionList($this); } return $this->_insightsQuestionnairesQuestion; } protected function getInsightsSegments(): InsightsSegmentsList { if (!$this->_insightsSegments) { $this->_insightsSegments = new InsightsSegmentsList($this); } return $this->_insightsSegments; } protected function getInsightsSession(): InsightsSessionList { if (!$this->_insightsSession) { $this->_insightsSession = new InsightsSessionList($this); } return $this->_insightsSession; } protected function getInsightsSettingsAnswerSets(): InsightsSettingsAnswerSetsList { if (!$this->_insightsSettingsAnswerSets) { $this->_insightsSettingsAnswerSets = new InsightsSettingsAnswerSetsList($this); } return $this->_insightsSettingsAnswerSets; } protected function getInsightsSettingsComment(): InsightsSettingsCommentList { if (!$this->_insightsSettingsComment) { $this->_insightsSettingsComment = new InsightsSettingsCommentList($this); } return $this->_insightsSettingsComment; } protected function getInsightsUserRoles(): InsightsUserRolesList { if (!$this->_insightsUserRoles) { $this->_insightsUserRoles = new InsightsUserRolesList($this); } return $this->_insightsUserRoles; } protected function getInteraction(): InteractionList { if (!$this->_interaction) { $this->_interaction = new InteractionList($this); } return $this->_interaction; } protected function getWebChannel(): WebChannelList { if (!$this->_webChannel) { $this->_webChannel = new WebChannelList($this); } return $this->_webChannel; } /** * Magic getter to lazy load root resources * * @param string $name Resource to return * @return \Twilio\ListResource The requested resource * @throws TwilioException For unknown resource */ public function __get(string $name) { $method = 'get' . \ucfirst($name); if (\method_exists($this, $method)) { return $this->$method(); } throw new TwilioException('Unknown resource ' . $name); } /** * Magic caller to get resource contexts * * @param string $name Resource to return * @param array $arguments Context parameters * @return InstanceContext The requested resource context * @throws TwilioException For unknown resource */ public function __call(string $name, array $arguments): InstanceContext { $property = $this->$name; if (\method_exists($property, 'getContext')) { return \call_user_func_array(array($property, 'getContext'), $arguments); } throw new TwilioException('Resource does not have a context'); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { return '[Twilio.FlexApi.V1]'; } }