| 1 | <?php |
||
| 12 | class File implements FileInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $path; |
||
| 19 | private $isDirectory; |
||
| 20 | |||
| 21 | 1 | public function __construct($path) |
|
| 28 | |||
| 29 | public function moveTo(string $destination) : void |
||
| 35 | |||
| 36 | public function getSize() : integer |
||
| 40 | |||
| 41 | public function copyTo(string $destination) : void |
||
| 46 | |||
| 47 | public function getContents() |
||
| 52 | |||
| 53 | public function putContents($contents) |
||
| 62 | |||
| 63 | public function delete() : void |
||
| 67 | |||
| 68 | public function getPath() : string |
||
| 72 | |||
| 73 | 1 | public function __toString() |
|
| 77 | |||
| 78 | } |
||
| 79 |