PHP Class AuthBucket\Bundle\OAuth2Bundle\Entity\AccessToken

Inheritance: implements AuthBucket\OAuth2\Model\AccessTokenInterface
Show file Open project: authbucket/oauth2-symfony-bundle

Protected Properties

Property Type Description
$accessToken string
$clientId string
$expires DateTime
$scope array
$tokenType string
$username string

Public Methods

Method Description
getAccessToken ( ) : string Get access_token.
getClientId ( ) : string Get client_id.
getExpires ( ) : DateTime Get expires.
getScope ( ) : array Get scope.
getTokenType ( ) : string Get token_type.
getUsername ( ) : string Get username.
setAccessToken ( string $accessToken ) : AccessToken Set access_token.
setClientId ( string $clientId ) : AccessToken Set client_id.
setExpires ( DateTime $expires ) : AccessToken Set expires.
setScope ( array $scope ) : AccessToken Set scope.
setTokenType ( string $tokenType ) : AccessToken Set token_type.
setUsername ( string $username ) : AccessToken Set username.

Method Details

getAccessToken() public method

Get access_token.
public getAccessToken ( ) : string
return string

getClientId() public method

Get client_id.
public getClientId ( ) : string
return string

getExpires() public method

Get expires.
public getExpires ( ) : DateTime
return DateTime

getScope() public method

Get scope.
public getScope ( ) : array
return array

getTokenType() public method

Get token_type.
public getTokenType ( ) : string
return string

getUsername() public method

Get username.
public getUsername ( ) : string
return string

setAccessToken() public method

Set access_token.
public setAccessToken ( string $accessToken ) : AccessToken
$accessToken string
return AccessToken

setClientId() public method

Set client_id.
public setClientId ( string $clientId ) : AccessToken
$clientId string
return AccessToken

setExpires() public method

Set expires.
public setExpires ( DateTime $expires ) : AccessToken
$expires DateTime
return AccessToken

setScope() public method

Set scope.
public setScope ( array $scope ) : AccessToken
$scope array
return AccessToken

setTokenType() public method

Set token_type.
public setTokenType ( string $tokenType ) : AccessToken
$tokenType string
return AccessToken

setUsername() public method

Set username.
public setUsername ( string $username ) : AccessToken
$username string
return AccessToken

Property Details

$accessToken protected property

protected string $accessToken
return string

$clientId protected property

protected string $clientId
return string

$expires protected property

protected DateTime $expires
return DateTime

$scope protected property

protected array $scope
return array

$tokenType protected property

protected string $tokenType
return string

$username protected property

protected string $username
return string