1 | <?php |
||
8 | class FileUploadedResponse extends Response implements FileResponseInterface |
||
9 | { |
||
10 | use Response\InjectContentTypeTrait; |
||
11 | /** |
||
12 | * @var resource |
||
13 | */ |
||
14 | protected $resource; |
||
15 | |||
16 | /** |
||
17 | * @var UploadedFileInterface |
||
18 | */ |
||
19 | protected $content; |
||
20 | |||
21 | /** |
||
22 | * @return resource |
||
23 | */ |
||
24 | public function getResource() |
||
28 | |||
29 | /** |
||
30 | * @return UploadedFileInterface |
||
31 | */ |
||
32 | public function getContent() |
||
36 | |||
37 | /** |
||
38 | * @param UploadedFileInterface $content |
||
39 | */ |
||
40 | public function setContent($content) |
||
47 | |||
48 | /** |
||
49 | * Create an empty response with the given status code and attached uploaded file information. |
||
50 | * |
||
51 | * @param UploadedFileInterface $uploadedFile |
||
52 | * @param int $status Status code for the response, if any. |
||
53 | * @param array $headers Headers for the response, if any. |
||
54 | */ |
||
55 | public function __construct(UploadedFileInterface $uploadedFile, $status = 204, array $headers = []) |
||
61 | |||
62 | protected function createBody() |
||
68 | } |
||
69 |