| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class File |
||
| 16 | { |
||
| 17 | protected $filePath; |
||
| 18 | |||
| 19 | public $file; |
||
| 20 | public $type; |
||
| 21 | public $size; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * File constructor. |
||
| 25 | * @param \stdClass $file |
||
| 26 | * @param string $filePath |
||
| 27 | */ |
||
| 28 | public function __construct(\stdClass $file, $filePath = 'files') |
||
| 29 | { |
||
| 30 | $this->file = $file->file; |
||
| 31 | $this->type = $file->type; |
||
| 32 | $this->size = $file->size; |
||
| 33 | $this->filePath = $filePath; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function __toString() |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $filePath |
||
| 43 | */ |
||
| 44 | public function setFilePath($filePath) |
||
| 47 | } |
||
| 48 | |||
| 49 | } |