Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
25 | public function __construct(string $method, array $allowedMethods, string $detail = null, string $instance = null) |
||
26 | { |
||
27 | 2 | parent::__construct( |
|
28 | 'https://tools.ietf.org/html/rfc2616#section-10.4.6', |
||
29 | 2 | 405, |
|
30 | 2 | 'Method Not Allowed', |
|
31 | 2 | $detail, |
|
32 | 2 | $instance |
|
33 | ); |
||
34 | |||
35 | $this->method = $method; |
||
36 | $this->allowedMethods = $allowedMethods; |
||
37 | 2 | } |
|
57 |