for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Security\Exception;
use Exception;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
class AccessDeniedException extends Exception
{
/**
* @var ServerRequestInterface
*/
protected $request;
* @var ResponseInterface
protected $response;
* Constructor.
*
* @param ServerRequestInterface $request
* @param ResponseInterface $response
public function __construct(ServerRequestInterface $request, ResponseInterface $response)
parent::__construct('Access denied');
$this->request = $request;
$this->response = $response;
}
* Gets the request.
* @return ServerRequestInterface
public function getRequest()
return $this->request;
* Sets the request.
public function setRequest(ServerRequestInterface $request)
* Gets the response.
* @return ResponseInterface
public function getResponse()
return $this->response;
* Sets the response.
public function setResponse(ResponseInterface $response)