ApiUserAdapter
in package
implements
AdapterInterface
Table of Contents
Interfaces
- AdapterInterface
Properties
Methods
- __construct() : mixed
- authenticate() : Result
- Try to authenticate.
- getMapper() : ApiUser
- Get the mapper.
- setCredentials() : void
- Sets the credentials used to authenticate.
Properties
$mapper read-only
private
ApiUser
$mapper
$token
private
string
$token
Methods
__construct()
public
__construct(ApiUser $mapper) : mixed
Parameters
- $mapper : ApiUser
authenticate()
Try to authenticate.
public
authenticate() : Result
Return values
ResultgetMapper()
Get the mapper.
public
getMapper() : ApiUser
Return values
ApiUsersetCredentials()
Sets the credentials used to authenticate.
public
setCredentials(string $token) : void
Parameters
- $token : string