Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | private function createResponseInternal(int $code = 200, string $reasonPhrase = ''): ResponseInterface |
||
25 | { |
||
26 | if (2 > \func_num_args()) { |
||
27 | // This will make the Response class to use a custom reasonPhrase |
||
28 | $reasonPhrase = null; |
||
29 | } |
||
30 | |||
31 | return new Response($code, [], null, '1.1', $reasonPhrase); |
||
32 | } |
||
34 |