Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
19 | 1 | public function toString(ResponseInterface $response) |
|
20 | { |
||
21 | 1 | $string = sprintf( |
|
22 | 1 | "HTTP/%s %s %s\n", |
|
23 | 1 | $response->getProtocolVersion(), |
|
24 | 1 | $response->getStatusCode(), |
|
25 | 1 | $response->getReasonPhrase() |
|
26 | ); |
||
27 | |||
28 | 1 | $string .= $this->headersAndBody($response); |
|
29 | |||
30 | 1 | return $string; |
|
31 | } |
||
32 | } |
||
33 |