for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Superbrave\AuthZeroHttpClient;
/**
* Contains the access token and expiry time returned by Auth0.
*
* @author Niels Nijens <[email protected]>
*/
class AccessToken
{
* @var string
private $token;
* @var int
private $ttl;
* Constructs a new AccessToken instance.
* @param string $token
* @param int $ttl
public function __construct(string $token, int $ttl)
$this->token = $token;
$this->ttl = $ttl;
}
* @return string
public function getToken(): string
return $this->token;
* @return int
public function getTtl(): int
return $this->ttl;