PHP Class Elcodi\Store\ConnectBundle\Entity\Authorization

Links an OAuth authorization token with a Customer
Author: Berny Cantos ([email protected])
Inheritance: implements Elcodi\Store\ConnectBundle\Entity\Interfaces\AuthorizationInterface, use trait Elcodi\Component\Core\Entity\Traits\IdentifiableTrait
Show file Open project: elcodi/bamboo Class Usage Examples

Protected Properties

Property Type Description
$authorizationToken string Authorization token, when it suits
$expirationDate DateTime Expiration date
$resourceOwnerName string Name of the resource owner
$user Symfony\Component\Security\Core\User\UserInterface User
$username string Username in the remote system

Public Methods

Method Description
__toString ( ) : string Returns the attribute name
getAuthorizationToken ( ) : string Get authorization token
getExpirationDate ( ) : DateTime Get expiration date
getResourceOwnerName ( ) : string Get resource owner name
getUser ( ) : Symfony\Component\Security\Core\User\UserInterface Get user
getUsername ( ) : string Get current username
setAuthorizationToken ( string $authorizationToken ) Set current authorization token
setExpirationDate ( DateTime $expirationDate ) Set expiration date
setResourceOwnerName ( string $resourceOwnerName ) Set resource owner name
setUser ( Symfony\Component\Security\Core\User\UserInterface $user ) Set user
setUsername ( string $username ) : self Set username

Method Details

__toString() public method

Returns the attribute name
public __toString ( ) : string
return string

getAuthorizationToken() public method

Get authorization token
public getAuthorizationToken ( ) : string
return string

getExpirationDate() public method

Get expiration date
public getExpirationDate ( ) : DateTime
return DateTime

getResourceOwnerName() public method

Get resource owner name
public getResourceOwnerName ( ) : string
return string

getUser() public method

Get user
public getUser ( ) : Symfony\Component\Security\Core\User\UserInterface
return Symfony\Component\Security\Core\User\UserInterface

getUsername() public method

Get current username
public getUsername ( ) : string
return string

setAuthorizationToken() public method

Set current authorization token
public setAuthorizationToken ( string $authorizationToken )
$authorizationToken string New authorization token

setExpirationDate() public method

Set expiration date
public setExpirationDate ( DateTime $expirationDate )
$expirationDate DateTime

setResourceOwnerName() public method

Set resource owner name
public setResourceOwnerName ( string $resourceOwnerName )
$resourceOwnerName string Resource owner name

setUser() public method

Set user
public setUser ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface New user

setUsername() public method

Set username
public setUsername ( string $username ) : self
$username string
return self

Property Details

$authorizationToken protected property

Authorization token, when it suits
protected string $authorizationToken
return string

$expirationDate protected property

Expiration date
protected DateTime $expirationDate
return DateTime

$resourceOwnerName protected property

Name of the resource owner
protected string $resourceOwnerName
return string

$user protected property

User
protected UserInterface,Symfony\Component\Security\Core\User $user
return Symfony\Component\Security\Core\User\UserInterface

$username protected property

Username in the remote system
protected string $username
return string