options['codeLength'] = $codeLength; } /** * The length of the verification code to be generated. Must be an integer value between 4-10 * * @param integer $codeLength Length of verification code. Valid values are 4-10 * @return $this Fluent Builder */ public function setCodeLength($codeLength) { $this->options['codeLength'] = $codeLength; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Preview.AccSecurity.CreateServiceOptions ' . implode(' ', $options) . ']'; } } class UpdateServiceOptions extends Options { /** * @param string $name Friendly name of the service * @param integer $codeLength Length of verification code. Valid values are 4-10 */ public function __construct($name = Values::NONE, $codeLength = Values::NONE) { $this->options['name'] = $name; $this->options['codeLength'] = $codeLength; } /** * A 1-64 character string with friendly name of service * * @param string $name Friendly name of the service * @return $this Fluent Builder */ public function setName($name) { $this->options['name'] = $name; return $this; } /** * The length of the verification code to be generated. Must be an integer value between 4-10 * * @param integer $codeLength Length of verification code. Valid values are 4-10 * @return $this Fluent Builder */ public function setCodeLength($codeLength) { $this->options['codeLength'] = $codeLength; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Preview.AccSecurity.UpdateServiceOptions ' . implode(' ', $options) . ']'; } }