PHP Interface Symfony\Component\Security\User\AccountInterface

Author: Fabien Potencier ([email protected])
Mostrar archivo Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Public Methods

Method Description
__toString ( ) : string Returns a string representation of the User.
eraseCredentials ( ) Removes sensitive data from the user.
getPassword ( ) : string Returns the password used to authenticate the user.
getRoles ( ) : Role[] Returns the roles granted to the user.
getSalt ( ) : string Returns the salt.
getUsername ( ) : string Returns the username used to authenticate the user.

Method Details

__toString() public method

Returns a string representation of the User.
public __toString ( ) : string
return string A string return of the User

eraseCredentials() public method

Removes sensitive data from the user.
public eraseCredentials ( )

getPassword() public method

Returns the password used to authenticate the user.
public getPassword ( ) : string
return string The password

getRoles() public method

Returns the roles granted to the user.
public getRoles ( ) : Role[]
return Role[] The user roles

getSalt() public method

Returns the salt.
public getSalt ( ) : string
return string The salt

getUsername() public method

Returns the username used to authenticate the user.
public getUsername ( ) : string
return string The username