Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class ResponseFactory implements ResponseFactoryInterface |
||
20 | { |
||
21 | /** @var HttpConfig */ |
||
22 | protected $config; |
||
23 | |||
24 | /** |
||
25 | * @param HttpConfig $config |
||
26 | */ |
||
27 | public function __construct(HttpConfig $config) |
||
28 | { |
||
29 | $this->config = $config; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param int $code |
||
34 | * @param string $reasonPhrase |
||
35 | * |
||
36 | * @return ResponseInterface |
||
37 | */ |
||
38 | public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface |
||
48 | } |
||
49 | } |
||
50 |