BadCredentialsException
extends AuthenticationException
in package
BadCredentialsException is thrown when the user credentials are invalid.
Tags
Table of Contents
Properties
- $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
- setToken() : mixed
Properties
$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>
There is no need to serialize any entry, they should be returned as-is.
If you extend this method, keep in mind you MUST guarantee parent data is present in the state.
Here is an example of how to extend this method:
public function __serialize(): array
{
return [$this->childAttribute, parent::__serialize()];
}
Tags
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
There is no need to unserialize any entry in $data, they are already ready-to-use.
If you extend this method, keep in mind you MUST pass the parent data to its respective class.
Here is an example of how to extend this method:
public function __unserialize(array $data): void
{
[$this->childAttribute, $parentData] = $data;
parent::__unserialize($parentData);
}
Parameters
- $data : array<string|int, mixed>
Tags
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|nullsetToken()
public
setToken(TokenInterface $token) : mixed
Parameters
- $token : TokenInterface