class AccessToken implements AccessTokenEntityInterface (View source)

Traits

AccessTokenTrait

Properties

protected $identifier
protected DateTime $expiryDateTime
protected $userIdentifier
protected $scopes
protected ScopeEntityInterface[] $client

Methods

getIdentifier()

{@inheritdoc}

setIdentifier($identifier)

{@inheritdoc}

addScope(ScopeEntityInterface $scope)

{@inheritdoc}

getScopes()

{@inheritdoc}

getExpiryDateTime()

{@inheritdoc}

setExpiryDateTime(DateTimeImmutable $dateTime)

{@inheritdoc}

setUserIdentifier($identifier)

{@inheritdoc}

getUserIdentifier()

{@inheritdoc}

getClient()

{@inheritdoc}

setClient(ClientEntityInterface $client)

{@inheritdoc}

Details

getIdentifier()

{@inheritdoc}

See also

\League\OAuth2\Server\Entities\TokenInterface::getIdentifier()

setIdentifier($identifier)

{@inheritdoc}

Parameters

$identifier

See also

\League\OAuth2\Server\Entities\TokenInterface::setIdentifier()

addScope(ScopeEntityInterface $scope)

{@inheritdoc}

Parameters

ScopeEntityInterface $scope

See also

\League\OAuth2\Server\Entities\TokenInterface::addScope()

getScopes()

{@inheritdoc}

See also

\League\OAuth2\Server\Entities\TokenInterface::getScopes()

getExpiryDateTime()

{@inheritdoc}

See also

\League\OAuth2\Server\Entities\TokenInterface::getExpiryDateTime()

setExpiryDateTime(DateTimeImmutable $dateTime)

{@inheritdoc}

Parameters

DateTimeImmutable $dateTime

See also

\League\OAuth2\Server\Entities\TokenInterface::setExpiryDateTime()

setUserIdentifier($identifier)

{@inheritdoc}

Parameters

$identifier

See also

\League\OAuth2\Server\Entities\TokenInterface::setUserIdentifier()

getUserIdentifier()

{@inheritdoc}

See also

\League\OAuth2\Server\Entities\TokenInterface::getUserIdentifier()

getClient()

{@inheritdoc}

See also

\League\OAuth2\Server\Entities\TokenInterface::getClient()

setClient(ClientEntityInterface $client)

{@inheritdoc}

Parameters

ClientEntityInterface $client

See also

\League\OAuth2\Server\Entities\TokenInterface::setClient()