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