\Thelia\Core\Security\UserUserInterface

This interface should be implemented by user classes

Summary

Methods
Constants
getUsername()
getPassword()
checkPassword()
getRoles()
eraseCredentials()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getUsername()

getUsername()

Return the user unique name

getPassword()

getPassword()

Return the user encoded password

checkPassword()

checkPassword( $password)

Check a string against a the user password

Parameters

$password

getRoles()

getRoles() : \Thelia\Core\Security\User\Role[]

Returns the roles granted to the user.

public function getRoles() { return array('USER'); }

Returns

\Thelia\Core\Security\User\Role[] —

The user roles

eraseCredentials()

eraseCredentials() : void

Removes sensitive data from the user.

This is important if, at any given point, sensitive information like the plain-text password is stored on this object.