Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
4 | abstract class AbstractFile |
||
5 | { |
||
6 | protected $fileName; |
||
7 | protected $fileData; |
||
8 | protected $contentType; |
||
9 | |||
10 | public function __construct(string $fileName, string $fileData, string $contentType = 'application/octet-stream') |
||
11 | { |
||
12 | $this->fileName = $fileName; |
||
13 | $this->fileData = $fileData; |
||
14 | $this->contentType = $contentType; |
||
15 | } |
||
16 | |||
17 | public function getDownloadResponse() |
||
35 | ] |
||
36 | ); |
||
39 |