| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 45 | public function __construct(UploadedFileInterface $file) |
|
| 28 | { |
||
| 29 | 45 | $this->psr = $file; |
|
| 30 | |||
| 31 | 45 | $this->type = $file->getClientMediaType(); |
|
| 32 | |||
| 33 | 45 | $this->name = $file->getClientFilename(); |
|
| 34 | |||
| 35 | 45 | $this->size = (integer) $file->getSize(); |
|
| 36 | |||
| 37 | 45 | $this->error = $file->getError(); |
|
| 38 | 45 | } |
|
| 65 |