Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
59 | public function createResponse( |
||
60 | $statusCode = 200, |
||
61 | $reasonPhrase = null, |
||
62 | array $headers = [], |
||
63 | $body = null, |
||
64 | $protocolVersion = '1.1' |
||
65 | ) { |
||
66 | return (new Response( |
||
67 | $statusCode, |
||
68 | new Headers($headers), |
||
69 | $this->streamFactory->createStream($body) |
||
70 | ))->withProtocolVersion($protocolVersion); |
||
71 | } |
||
72 | } |
||
73 |