NullToken
class NullToken implementsTokenInterface
Methods
string
__toString()
Returns a string representation of the Token.
array
getRoleNames()
Returns the user roles.
UserInterface|null
getUser()
Returns a user representation.
void
string
getUserIdentifier()
Returns the user identifier used during authentication (e.g. a user's email address or username).
void
eraseCredentials()
Removes sensitive information from the token.
array
getAttributes()
No description
void
setAttributes(array$attributes)
No description
bool
hasAttribute(string$name)
No description
mixed
getAttribute(string$name)
No description
void
setAttribute(string$name,mixed$value)
No description
array
__serialize()
Returns all the necessary state of the object for serialization purposes.
void
__unserialize(array$data)
Restores the object state from an array given by __serialize().