interface TokenInterface implements Serializable
TokenInterface is the interface for the user authentication information.
Methods
string __toString() Returns a string representation of the Token.
RoleInterface[] getRoles() Returns the user roles.
mixed getCredentials() Returns the user credentials.
mixed getUser() Returns a user representation.
setUser(mixed $user) Sets a user.
string getUsername() Returns the username.
bool isAuthenticated() Returns whether