PHP Interface Symfony\Component\Security\User\AccountInterface

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

Méthodes publiques

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

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

eraseCredentials() public méthode

Removes sensitive data from the user.
public eraseCredentials ( )

getPassword() public méthode

Returns the password used to authenticate the user.
public getPassword ( ) : string
Résultat string The password

getRoles() public méthode

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

getSalt() public méthode

Returns the salt.
public getSalt ( ) : string
Résultat string The salt

getUsername() public méthode

Returns the username used to authenticate the user.
public getUsername ( ) : string
Résultat string The username