AccessToken
extends RowGateway
in package
implements
AccessTokenEntityInterface
Row Definition for access_token
Tags
Interfaces, Classes, Traits and Enums
- AccessTokenEntityInterface
- Entity model interface for access tokens.
Table of Contents
- __construct() : mixed
- Constructor
- getPrimaryKeyColumn() : array<string|int, mixed>
- Retrieve primary key information.
- isRevoked() : bool
- Is the access token revoked?
- setData() : AccessTokenEntityInterface
- Set data.
- setRevoked() : AccessTokenEntityInterface
- Set revoked status.
- setUser() : AccessTokenEntityInterface
- Set user ID.
Methods
__construct()
Constructor
public
__construct(Adapter $adapter) : mixed
Parameters
- $adapter : Adapter
-
Database adapter
Return values
mixed —getPrimaryKeyColumn()
Retrieve primary key information.
public
getPrimaryKeyColumn() : array<string|int, mixed>
Return values
array<string|int, mixed> —isRevoked()
Is the access token revoked?
public
isRevoked() : bool
Return values
bool —setData()
Set data.
public
setData(string $data) : AccessTokenEntityInterface
Parameters
- $data : string
-
Data
Return values
AccessTokenEntityInterface —setRevoked()
Set revoked status.
public
setRevoked(bool $revoked) : AccessTokenEntityInterface
Parameters
- $revoked : bool
-
Revoked
Return values
AccessTokenEntityInterface —setUser()
Set user ID.
public
setUser(UserEntityInterface|null $user) : AccessTokenEntityInterface
Parameters
- $user : UserEntityInterface|null
-
User owning token