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(RequestInterface $request) |
|
20 | { |
||
21 | 1 | $string = sprintf( |
|
22 | 1 | "%s %s HTTP/%s\n", |
|
23 | 1 | $request->getMethod(), |
|
24 | 1 | $request->getRequestTarget(), |
|
25 | 1 | $request->getProtocolVersion() |
|
26 | ); |
||
27 | |||
28 | 1 | $string .= $this->headersAndBody($request); |
|
29 | |||
30 | 1 | return $string; |
|
31 | } |
||
32 | } |
||
33 |