options['factorFriendlyName'] = $factorFriendlyName; $this->options['ttl'] = $ttl; } /** * The friendly name of the factor that is going to be created with this access token * * @param string $factorFriendlyName The friendly name of the factor that is going to be created with this access token * @return $this Fluent Builder */ public function setFactorFriendlyName(string $factorFriendlyName): self { $this->options['factorFriendlyName'] = $factorFriendlyName; return $this; } /** * How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60. * * @param int $ttl How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60. * @return $this Fluent Builder */ public function setTtl(int $ttl): self { $this->options['ttl'] = $ttl; 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.Verify.V2.CreateAccessTokenOptions ' . $options . ']'; } }