Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
16 | 1 | class TextResponse extends BaseResponse |
|
17 | { |
||
18 | |||
19 | /** |
||
20 | * @param Media|stdClass|string|iterable<string|int, mixed> $media |
||
21 | * @param IMapper $mapper |
||
22 | * @param string|null $contentType |
||
23 | */ |
||
24 | 1 | public function __construct( |
|
31 | 1 | } |
|
32 | |||
33 | /** |
||
34 | * Get response data |
||
35 | * @inheritDoc |
||
36 | */ |
||
37 | public function getData(): iterable|stdClass|string |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Sends response to output |
||
46 | */ |
||
47 | public function send(Http\IRequest $httpRequest, Http\IResponse $httpResponse): void |
||
53 |