AccessTokenInterface
extends
JsonSerializable
in
Table of Contents
Methods
- __toString() : string
- Returns a string representation of the access token
- getExpires() : int|null
- Returns the expiration timestamp in seconds, if defined.
- getRefreshToken() : string|null
- Returns the refresh token, if defined.
- getToken() : string
- Returns the access token string of this instance.
- getValues() : array<string|int, mixed>
- Returns additional vendor values stored in the token.
- hasExpired() : bool
- Checks if this token has expired.
- jsonSerialize() : array<string|int, mixed>
- Returns an array of parameters to serialize when this is serialized with json_encode().
Methods
__toString()
Returns a string representation of the access token
public
__toString() : string
Return values
stringgetExpires()
Returns the expiration timestamp in seconds, if defined.
public
getExpires() : int|null
Return values
int|nullgetRefreshToken()
Returns the refresh token, if defined.
public
getRefreshToken() : string|null
Return values
string|nullgetToken()
Returns the access token string of this instance.
public
getToken() : string
Return values
stringgetValues()
Returns additional vendor values stored in the token.
public
getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>hasExpired()
Checks if this token has expired.
public
hasExpired() : bool
Tags
Return values
bool —true if the token has expired, false otherwise.
jsonSerialize()
Returns an array of parameters to serialize when this is serialized with json_encode().
public
jsonSerialize() : array<string|int, mixed>
Attributes
- #[ReturnTypeWillChange]