PHP Class AppBundle\Entity\User

Show file Open project: alfonsomga/symfony.demo.on.roids Class Usage Examples

Public Methods

Method Description
eraseCredentials ( ) Removes sensitive data from the user.
getEmail ( )
getGithubAccessToken ( ) Returns the GitHub access token
getGithubId ( ) Returns the GitHub user id
getId ( )
getPassword ( )
getRoles ( ) Returns the roles or permissions granted to the user for security.
getSalt ( ) Returns the salt that was originally used to encode the password.
getUsername ( )
setEmail ( $email )
setGithubAccessToken ( $github_access_token ) Set GitHub access token
setGithubId ( $github_id ) Set GitHub user id
setPassword ( $password )
setRoles ( array $roles )
setUsername ( $username )

Method Details

eraseCredentials() public method

Removes sensitive data from the user.
public eraseCredentials ( )

getEmail() public method

public getEmail ( )

getGithubAccessToken() public method

Returns the GitHub access token

getGithubId() public method

Returns the GitHub user id
public getGithubId ( )

getId() public method

public getId ( )

getPassword() public method

public getPassword ( )

getRoles() public method

Returns the roles or permissions granted to the user for security.
public getRoles ( )

getSalt() public method

Returns the salt that was originally used to encode the password.
public getSalt ( )

getUsername() public method

public getUsername ( )

setEmail() public method

public setEmail ( $email )

setGithubAccessToken() public method

Set GitHub access token
public setGithubAccessToken ( $github_access_token )
$github_access_token

setGithubId() public method

Set GitHub user id
public setGithubId ( $github_id )
$github_id

setPassword() public method

public setPassword ( $password )

setRoles() public method

public setRoles ( array $roles )
$roles array

setUsername() public method

public setUsername ( $username )