Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | protected function headersAndBody(MessageInterface $message) |
||
20 | { |
||
21 | $string = ''; |
||
22 | |||
23 | foreach ($message->getHeaders() as $name => $values) { |
||
24 | foreach ($values as $value) { |
||
25 | $string .= $name.': '.$value."\n"; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | $string .= "\n"; |
||
30 | $string .= (string) $message->getBody(); |
||
31 | |||
32 | return $string; |
||
33 | } |
||
34 | } |
||
35 |