Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
27 | 2 | public function __construct( |
|
28 | string $accept, |
||
29 | array $acceptables, |
||
30 | string $detail = null, |
||
31 | string $instance = null |
||
32 | ) { |
||
33 | 2 | parent::__construct( |
|
34 | 2 | 'https://tools.ietf.org/html/rfc2616#section-10.4.7', |
|
35 | 2 | 406, |
|
36 | 2 | 'Not Acceptable', |
|
37 | $detail, |
||
38 | $instance |
||
39 | ); |
||
40 | |||
41 | 2 | $this->accept = $accept; |
|
42 | 2 | $this->acceptables = $acceptables; |
|
43 | 2 | } |
|
44 | |||
61 |