Documentation

ResourceOwnerAccessTokenInterface extends AccessTokenInterface
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.
getResourceOwnerId()  : string|null
Returns the resource owner identifier, 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
string

getExpires()

Returns the expiration timestamp in seconds, if defined.

public getExpires() : int|null
Return values
int|null

getRefreshToken()

Returns the refresh token, if defined.

public getRefreshToken() : string|null
Return values
string|null

getToken()

Returns the access token string of this instance.

public getToken() : string
Return values
string

getValues()

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
throws
RuntimeException

if 'expires' is not set on the token.

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]
Return values
array<string|int, mixed>

        
On this page

Search results