options['answeredBy'] = $answeredBy; $this->options['connectivityIssue'] = $connectivityIssue; $this->options['qualityIssues'] = $qualityIssues; $this->options['spam'] = $spam; $this->options['callScore'] = $callScore; $this->options['comment'] = $comment; $this->options['incident'] = $incident; } /** * @param string $answeredBy * @return $this Fluent Builder */ public function setAnsweredBy(string $answeredBy): self { $this->options['answeredBy'] = $answeredBy; return $this; } /** * @param string $connectivityIssue * @return $this Fluent Builder */ public function setConnectivityIssue(string $connectivityIssue): self { $this->options['connectivityIssue'] = $connectivityIssue; return $this; } /** * Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call. * * @param string $qualityIssues Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call. * @return $this Fluent Builder */ public function setQualityIssues(string $qualityIssues): self { $this->options['qualityIssues'] = $qualityIssues; return $this; } /** * A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call. * * @param bool $spam A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call. * @return $this Fluent Builder */ public function setSpam(bool $spam): self { $this->options['spam'] = $spam; return $this; } /** * Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. * * @param int $callScore Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. * @return $this Fluent Builder */ public function setCallScore(int $callScore): self { $this->options['callScore'] = $callScore; return $this; } /** * Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`. * * @param string $comment Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`. * @return $this Fluent Builder */ public function setComment(string $comment): self { $this->options['comment'] = $comment; return $this; } /** * Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`. * * @param string $incident Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`. * @return $this Fluent Builder */ public function setIncident(string $incident): self { $this->options['incident'] = $incident; 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.Insights.V1.UpdateAnnotationOptions ' . $options . ']'; } }