| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class FileEntry extends Entry implements Interfaces\IFileEntry |
||
| 15 | { |
||
| 16 | protected string $mimeType = ''; |
||
| 17 | protected string $tmpName = ''; |
||
| 18 | protected int $error = 0; |
||
| 19 | protected int $size = 0; |
||
| 20 | |||
| 21 | 6 | public function setFile(string $fileName, string $tmpName, string $mimeType, int $error, int $size): self |
|
| 22 | { |
||
| 23 | 6 | $this->value = $fileName; |
|
| 24 | 6 | $this->mimeType = $mimeType; |
|
| 25 | 6 | $this->tmpName = $tmpName; |
|
| 26 | 6 | $this->error = $error; |
|
| 27 | 6 | $this->size = $size; |
|
| 28 | 6 | return $this; |
|
| 29 | } |
||
| 30 | |||
| 31 | 6 | public function getSource(): string |
|
| 34 | } |
||
| 35 | |||
| 36 | 3 | public function getMimeType(): string |
|
| 37 | { |
||
| 38 | 3 | return $this->mimeType; |
|
| 39 | } |
||
| 40 | |||
| 41 | 3 | public function getTempName(): string |
|
| 42 | { |
||
| 43 | 3 | return $this->tmpName; |
|
| 44 | } |
||
| 45 | |||
| 46 | 2 | public function getError(): int |
|
| 47 | { |
||
| 48 | 2 | return $this->error; |
|
| 49 | } |
||
| 50 | |||
| 51 | 3 | public function getSize(): int |
|
| 54 | } |
||
| 55 | } |
||
| 56 |