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
Afficher le fichier Open project: elcodi/bamboo Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

Returns the attribute name
public __toString ( ) : string
Résultat string

getAuthorizationToken() public méthode

Get authorization token
public getAuthorizationToken ( ) : string
Résultat string

getExpirationDate() public méthode

Get expiration date
public getExpirationDate ( ) : DateTime
Résultat DateTime

getResourceOwnerName() public méthode

Get resource owner name
public getResourceOwnerName ( ) : string
Résultat string

getUser() public méthode

Get user
public getUser ( ) : Symfony\Component\Security\Core\User\UserInterface
Résultat Symfony\Component\Security\Core\User\UserInterface

getUsername() public méthode

Get current username
public getUsername ( ) : string
Résultat string

setAuthorizationToken() public méthode

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

setExpirationDate() public méthode

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

setResourceOwnerName() public méthode

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

setUser() public méthode

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

setUsername() public méthode

Set username
public setUsername ( string $username ) : self
$username string
Résultat self

Property Details

$authorizationToken protected_oe property

Authorization token, when it suits
protected string $authorizationToken
Résultat string

$expirationDate protected_oe property

Expiration date
protected DateTime $expirationDate
Résultat DateTime

$resourceOwnerName protected_oe property

Name of the resource owner
protected string $resourceOwnerName
Résultat string

$user protected_oe property

User
protected UserInterface,Symfony\Component\Security\Core\User $user
Résultat Symfony\Component\Security\Core\User\UserInterface

$username protected_oe property

Username in the remote system
protected string $username
Résultat string