modern-events-calendar-lite/app/api/Twilio/Rest/Verify/V2/Service/AccessTokenOptions.php

97 lines
3 KiB
PHP
Raw Permalink Normal View History

2024-10-15 12:04:03 +02:00
<?php
/**
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Verify
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Twilio\Rest\Verify\V2\Service;
use Twilio\Options;
use Twilio\Values;
abstract class AccessTokenOptions
{
/**
* @param string $factorFriendlyName The friendly name of the factor that is going to be created with this access token
* @param int $ttl How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60.
* @return CreateAccessTokenOptions Options builder
*/
public static function create(
string $factorFriendlyName = Values::NONE,
int $ttl = Values::INT_NONE
): CreateAccessTokenOptions
{
return new CreateAccessTokenOptions(
$factorFriendlyName,
$ttl
);
}
}
class CreateAccessTokenOptions extends Options
{
/**
* @param string $factorFriendlyName The friendly name of the factor that is going to be created with this access token
* @param int $ttl How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60.
*/
public function __construct(
string $factorFriendlyName = Values::NONE,
int $ttl = Values::INT_NONE
) {
$this->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 . ']';
}
}