* @author Robin Chalas */ class AuthenticationFailureEvent extends Event { /** * @var AuthenticationException */ protected $exception; /** * @var Response */ protected $response; /** * @var Request|null */ protected $request; public function __construct(?AuthenticationException $exception, ?Response $response, ?Request $request = null) { $this->exception = $exception; $this->response = $response; $this->request = $request; } /** * @return AuthenticationException */ public function getException() { return $this->exception; } /** * @return Response */ public function getResponse() { return $this->response; } public function setResponse(Response $response): void { $this->response = $response; } public function getRequest(): ?Request { return $this->request; } public function setRequest(Request $request) { $this->request = $request; } }