PHP Class OAuth2\Token

Show file Open project: vznet/oauth_2.0_client_php Class Usage Examples

Public Methods

Method Description
__call ( string $name, array $arguments ) : mixed magic method for setting and getting additional parameters returned from service
__construct ( string $accessToken = null, string $refreshToken = null, integer $lifeTime = null )
getAccessToken ( ) : string
getLifeTime ( ) : integer
getRefreshToken ( ) : string

Method Details

__call() public method

e.g. user_id parameter with scope openid
public __call ( string $name, array $arguments ) : mixed
$name string
$arguments array
return mixed

__construct() public method

public __construct ( string $accessToken = null, string $refreshToken = null, integer $lifeTime = null )
$accessToken string
$refreshToken string
$lifeTime integer

getAccessToken() public method

public getAccessToken ( ) : string
return string

getLifeTime() public method

public getLifeTime ( ) : integer
return integer

getRefreshToken() public method

public getRefreshToken ( ) : string
return string