class User implements AdvancedUserInterface
User is the user implementation used by the in-memory user provider. This should not be used for anything else.
Methods
__construct($username, $password, array $roles = array(), $enabled = true, $userNonExpired = true, $credentialsNonExpired = true, $userNonLocked = true)
__toString()
Role[] getRoles() Returns the roles granted to the user.
string getPassword() Returns the password used to authenticate the user.
string|null