| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class FileResponse extends BaseResponse |
||
| 17 | { |
||
| 18 | |||
| 19 | public function __construct( |
||
| 20 | protected Media $media, |
||
| 21 | IMapper $mapper, |
||
| 22 | ?string $contentType = null, |
||
| 23 | ) |
||
| 24 | { |
||
| 25 | parent::__construct($mapper, $contentType); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get response data |
||
| 30 | */ |
||
| 31 | public function getData(): iterable|stdClass|string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Sends response to output |
||
| 38 | */ |
||
| 39 | public function send(Http\IRequest $httpRequest, Http\IResponse $httpResponse): void |
||
| 45 |