| Total Complexity | 9 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Uploader { |
||
| 9 | |||
| 10 | /** @var Directory */ |
||
| 11 | protected $directory; |
||
| 12 | |||
| 13 | /** @var File */ |
||
| 14 | protected $file; |
||
| 15 | |||
| 16 | /** @var File */ |
||
| 17 | protected $temp; |
||
| 18 | |||
| 19 | public function __construct(Directory $directory) { |
||
| 20 | $this->directory = $directory; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** @return File */ |
||
| 24 | public function getFile() { |
||
| 25 | return $this->file; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function prepare($file) { |
||
| 36 | } |
||
| 37 | |||
| 38 | public function upload($newName = null) { |
||
| 54 |