| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function read() |
||
| 46 | { |
||
| 47 | if (null === $this->file) { |
||
| 48 | return []; |
||
| 49 | } |
||
| 50 | |||
| 51 | return [ |
||
| 52 | 'id' => $this->file->id()->id(), |
||
| 53 | 'created_on' => $this->file->createdOn(), |
||
| 54 | 'mime_type' => $this->file->mimeType()->mimeType(), |
||
| 55 | 'file_name' => $this->file->name()->filename(), |
||
| 56 | 'name' => $this->file->name()->name(), |
||
| 57 | 'extension' => $this->file->name()->extension(), |
||
| 58 | 'updated_on' => $this->file->updatedOn(), |
||
| 59 | ]; |
||
| 60 | } |
||
| 61 | } |
||
| 62 |