Conditions | 3 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function __construct(string $path, string $name, string $mimeType = null, int $error = null) { |
||
17 | $this->mimeType = $mimeType ?: 'application/octet-stream'; |
||
18 | $this->error = $error ?: UPLOAD_ERR_OK; |
||
19 | $this->originalName = pathinfo($name, PATHINFO_FILENAME); |
||
20 | parent::__construct($path); |
||
21 | } |
||
72 | } |