Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 3 | public function __construct( |
|
13 | public readonly RequestInterface $request, |
||
14 | public readonly ResponseInterface $response, |
||
15 | Throwable $previous |
||
16 | ) { |
||
17 | 3 | $message = sprintf( |
|
18 | 3 | 'API response with status code %d isn\'t defined in the spec for request [%s] %s.', |
|
19 | 3 | $response->getStatusCode(), |
|
20 | 3 | $request->getMethod(), |
|
21 | 3 | $request->getUri() |
|
22 | 3 | ); |
|
23 | |||
24 | 3 | parent::__construct($message, 0, $previous); |
|
25 | } |
||
27 |