Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 6 | public function __construct(ResponseInterface $response) |
|
22 | { |
||
23 | 6 | $body = new Stream($response->stream()); |
|
24 | |||
25 | 6 | $code = (integer) $response->code(); |
|
26 | |||
27 | 6 | $version = $response->version(); |
|
28 | |||
29 | 6 | $headers = $response->headers(); |
|
30 | |||
31 | 6 | parent::__construct($code, $body, $headers, $version); |
|
32 | 6 | } |
|
34 |