Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class TException extends \Exception |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $headers; |
||
18 | |||
19 | public function __construct(int $statusCode, string $message = '', Exception $previous = null, array $headers = [], $code = 0) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getHeaders(): array |
||
32 | { |
||
33 | return $this->headers; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param array $headers |
||
38 | * @return TException |
||
39 | */ |
||
40 | public function setHeaders(array $headers): TException |
||
44 | } |
||
45 | } |
||
46 |