whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
twilio
/
sdk
/
src
/
Twilio
/
Rest
/
Api
/
V2010
/
Account
/
Upload File:
files >> //home/kckglobal/www/portal/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/TokenOptions.php
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010\Account; use Twilio\Options; use Twilio\Values; abstract class TokenOptions { /** * @param int $ttl The duration in seconds the credentials are valid * @return CreateTokenOptions Options builder */ public static function create(int $ttl = Values::NONE): CreateTokenOptions { return new CreateTokenOptions($ttl); } } class CreateTokenOptions extends Options { /** * @param int $ttl The duration in seconds the credentials are valid */ public function __construct(int $ttl = Values::NONE) { $this->options['ttl'] = $ttl; } /** * The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). * * @param int $ttl The duration in seconds the credentials are valid * @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.Api.V2010.CreateTokenOptions ' . $options . ']'; } }
Copyright ©2021 || Defacer Indonesia