1 | <?php namespace Limoncello\Flute\Http; |
||
26 | class Responses extends BaseResponses |
||
27 | { |
||
28 | /** |
||
29 | * @var EncoderInterface |
||
30 | */ |
||
31 | private $encoder; |
||
32 | |||
33 | /** |
||
34 | * @var MediaTypeInterface |
||
35 | */ |
||
36 | private $outputMediaType; |
||
37 | |||
38 | /** |
||
39 | * @param MediaTypeInterface $outputMediaType |
||
40 | * @param EncoderInterface $encoder |
||
41 | */ |
||
42 | public function __construct( |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | protected function createResponse(?string $content, int $statusCode, array $headers) |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | protected function getEncoder(): EncoderInterface |
||
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | protected function getMediaType(): MediaTypeInterface |
||
73 | } |
||
74 |