HermesHSIAccessToken
in package
implements
Serializable
Interfaces, Classes and Traits
- Serializable
Table of Contents
- $accessTokenResponse : array<string|int, mixed>
- $validUntil : int
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __unserialize() : void
- getAccessToken() : string
- getRefreshToken() : string
- getValidUntil() : DateTime
- isValid() : bool
- serialize() : string
- String representation of object
- unserialize() : void
- Constructs the object
Properties
$accessTokenResponse
protected
array<string|int, mixed>
$accessTokenResponse
$validUntil
protected
int
$validUntil
Methods
__construct()
public
__construct(array<string|int, mixed> $accessTokenResponse[, int|null $timeOfRetrieval = null ]) : mixed
Parameters
- $accessTokenResponse : array<string|int, mixed>
- $timeOfRetrieval : int|null = null
Return values
mixed —__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —getAccessToken()
public
getAccessToken() : string
Return values
string —getRefreshToken()
public
getRefreshToken() : string
Return values
string —getValidUntil()
public
getValidUntil() : DateTime
Return values
DateTime —isValid()
public
isValid() : bool
Return values
bool —serialize()
String representation of object
public
serialize() : string
Tags
Return values
string —the string representation of the object or null
unserialize()
Constructs the object
public
unserialize(string $serialized) : void
Parameters
- $serialized : string
-
The string representation of the object.