| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class OverwriteFirewall extends AbstractFirewall |
||
| 23 | { |
||
| 24 | /** @var UriInterface */ |
||
| 25 | private $uri; |
||
| 26 | |||
| 27 | /** @var int */ |
||
| 28 | private $status; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param UriInterface $uri |
||
| 32 | * @param int $status |
||
| 33 | */ |
||
| 34 | public function __construct(UriInterface $uri, int $status = 401) |
||
| 35 | { |
||
| 36 | $this->uri = $uri; |
||
| 37 | $this->status = $status; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritDoc |
||
| 42 | */ |
||
| 43 | protected function denyAccess(Request $request, RequestHandlerInterface $handler): Response |
||
| 46 | } |
||
| 47 | } |
||
| 48 |