PHP Class AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\User

Inheritance: implements AuthBucket\OAuth2\Model\ModelInterface, implements Symfony\Component\Security\Core\User\UserInterface
Show file Open project: authbucket/oauth2-symfony-bundle Class Usage Examples

Protected Properties

Property Type Description
$id integer
$password string
$roles array
$username string

Public Methods

Method Description
eraseCredentials ( )
getId ( ) : integer Get id.
getPassword ( ) : string Get password.
getRoles ( ) : array Get roles.
getSalt ( )
getUsername ( ) : string Get username.
setPassword ( string $password ) : User Set password.
setRoles ( array $roles ) : User Set roles.
setUsername ( string $username ) : User Set username.

Method Details

eraseCredentials() public method

public eraseCredentials ( )

getId() public method

Get id.
public getId ( ) : integer
return integer

getPassword() public method

Get password.
public getPassword ( ) : string
return string

getRoles() public method

Get roles.
public getRoles ( ) : array
return array

getSalt() public method

public getSalt ( )

getUsername() public method

Get username.
public getUsername ( ) : string
return string

setPassword() public method

Set password.
public setPassword ( string $password ) : User
$password string
return User

setRoles() public method

Set roles.
public setRoles ( array $roles ) : User
$roles array
return User

setUsername() public method

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

Property Details

$id protected property

protected int $id
return integer

$password protected property

protected string $password
return string

$roles protected property

protected array $roles
return array

$username protected property

protected string $username
return string