| 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') |
||
| 35 | |||
| 36 | public function __toString() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $filePath |
||
| 43 | */ |
||
| 44 | public function setFilePath($filePath) |
||
| 48 | |||
| 49 | } |