| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace League\Flysystem; |
| 6 |
|
| 7 |
interface FilesystemWriter |
| 8 |
{ |
| 9 |
/** |
| 10 |
* @throws UnableToWriteFile |
| 11 |
* @throws FilesystemException |
| 12 |
*/ |
| 13 |
public function write(string $location, string $contents, array $config = []): void; |
| 14 |
|
| 15 |
/** |
| 16 |
* @param mixed $contents |
| 17 |
* |
| 18 |
* @throws UnableToWriteFile |
| 19 |
* @throws FilesystemException |
| 20 |
*/ |
| 21 |
public function writeStream(string $location, $contents, array $config = []): void; |
| 22 |
|
| 23 |
/** |
| 24 |
* @throws UnableToSetVisibility |
| 25 |
* @throws FilesystemException |
| 26 |
*/ |
| 27 |
public function setVisibility(string $path, string $visibility): void; |
| 28 |
|
| 29 |
/** |
| 30 |
* @throws UnableToDeleteFile |
| 31 |
* @throws FilesystemException |
| 32 |
*/ |
| 33 |
public function delete(string $location): void; |
| 34 |
|
| 35 |
/** |
| 36 |
* @throws UnableToDeleteDirectory |
| 37 |
* @throws FilesystemException |
| 38 |
*/ |
| 39 |
public function deleteDirectory(string $location): void; |
| 40 |
|
| 41 |
/** |
| 42 |
* @throws UnableToCreateDirectory |
| 43 |
* @throws FilesystemException |
| 44 |
*/ |
| 45 |
public function createDirectory(string $location, array $config = []): void; |
| 46 |
|
| 47 |
/** |
| 48 |
* @throws UnableToMoveFile |
| 49 |
* @throws FilesystemException |
| 50 |
*/ |
| 51 |
public function move(string $source, string $destination, array $config = []): void; |
| 52 |
|
| 53 |
/** |
| 54 |
* @throws UnableToCopyFile |
| 55 |
* @throws FilesystemException |
| 56 |
*/ |
| 57 |
public function copy(string $source, string $destination, array $config = []): void; |
| 58 |
} |
| 59 |
|