UserNotFoundException
extends AuthenticationException
in package
UserNotFoundException is thrown if a User cannot be found for the given identifier.
Tags
Table of Contents
Properties
- $identifier : string|null
- $token : mixed
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- Returns all the necessary state of the object for serialization purposes.
- __unserialize() : void
- Restores the object state from an array given by __serialize().
- getMessageData() : array<string|int, mixed>
- Message data to be used by the translation component.
- getMessageKey() : string
- Message key to be used by the translation component.
- getToken() : TokenInterface|null
- getUserIdentifier() : string|null
- Get the user identifier (e.g. username or email address).
- setToken() : mixed
- setUserIdentifier() : void
- Set the user identifier (e.g. username or email address).
Properties
$identifier
private
string|null
$identifier
= null
$token
private
mixed
$token
= null
Methods
__construct()
public
__construct([string $message = '' ][, int $code = 0 ][, Throwable $previous = null ]) : mixed
Parameters
- $message : string = ''
- $code : int = 0
- $previous : Throwable = null
__serialize()
Returns all the necessary state of the object for serialization purposes.
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
Restores the object state from an array given by __serialize().
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
getMessageData()
Message data to be used by the translation component.
public
getMessageData() : array<string|int, mixed>
Return values
array<string|int, mixed>getMessageKey()
Message key to be used by the translation component.
public
getMessageKey() : string
Return values
stringgetToken()
public
getToken() : TokenInterface|null
Return values
TokenInterface|nullgetUserIdentifier()
Get the user identifier (e.g. username or email address).
public
getUserIdentifier() : string|null
Return values
string|nullsetToken()
public
setToken(TokenInterface $token) : mixed
Parameters
- $token : TokenInterface
setUserIdentifier()
Set the user identifier (e.g. username or email address).
public
setUserIdentifier(string $identifier) : void
Parameters
- $identifier : string