for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OAuth;
use DateTime;
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
use League\OAuth2\Server\Entities\Traits\RefreshTokenTrait;
class RefreshToken implements RefreshTokenEntityInterface
{
use RefreshTokenTrait;
/**
* @var string
*/
protected $identifier;
* @var AccessTokenEntityInterface
protected $accessToken;
* @var \DateTime
protected $expiryDateTime;
* {@inheritdoc}
public function setAccessToken(AccessTokenEntityInterface $accessToken)
$this->accessToken = $accessToken;
}
public function getAccessToken()
return $this->accessToken;
* Get the token's expiry date time.
*
* @return DateTime
public function getExpiryDateTime()
return $this->expiryDateTime;
* Set the date time when the token expires.
* @param DateTime $dateTime
public function setExpiryDateTime(DateTime $dateTime)
$this->expiryDateTime = $dateTime;
* @return mixed
public function getIdentifier()
return $this->identifier;
* @param mixed $identifier
public function setIdentifier($identifier)
$this->identifier = $identifier;