1 | <?php declare(strict_types = 1); |
||
19 | final class ResponseFactory implements ResponseFactoryContract |
||
20 | { |
||
21 | /** |
||
22 | * @inheritDoc |
||
23 | */ |
||
24 | 2 | public function createEmptyResponse($status = 204, array $headers = []): ResponseInterface |
|
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | 1 | public function createHtmlResponse(string $html, int $status = 200, array $headers = []): ResponseInterface |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function createJsonResponse( |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 2 | public function createRedirectResponse($uri, int $status = 302, array $headers = []): ResponseInterface |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 1 | public function createResponse($body = 'php://memory', int $status = 200, array $headers = []): ResponseInterface |
|
65 | |||
66 | /** |
||
67 | * @inheritDoc |
||
68 | */ |
||
69 | 1 | public function createTextResponse($text, $status = 200, array $headers = []): ResponseInterface |
|
73 | } |