Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
HttpForbidden
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Http\Exceptions;
6
7use Throwable;
8
9class HttpForbidden extends HttpException
10{
11    /**
12     * @param Throwable|null $previous
13     */
14    public function __construct(
15        string $message = '',
16        array $headers = [],
17        int $code = 0,
18        Throwable $previous = null
19    ) {
20        parent::__construct(403, $message, $headers, $code, $previous);
21    }
22}