| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace League\Flysystem; |
| 6 |
|
| 7 |
abstract class DecoratedAdapter implements FilesystemAdapter |
| 8 |
{ |
| 9 |
public function __construct(protected FilesystemAdapter $adapter) |
| 10 |
{ |
| 11 |
} |
| 12 |
|
| 13 |
public function fileExists(string $path): bool |
| 14 |
{ |
| 15 |
return $this->adapter->fileExists($path); |
| 16 |
} |
| 17 |
|
| 18 |
public function directoryExists(string $path): bool |
| 19 |
{ |
| 20 |
return $this->adapter->directoryExists($path); |
| 21 |
} |
| 22 |
|
| 23 |
public function write(string $path, string $contents, Config $config): void |
| 24 |
{ |
| 25 |
$this->adapter->write($path, $contents, $config); |
| 26 |
} |
| 27 |
|
| 28 |
public function writeStream(string $path, $contents, Config $config): void |
| 29 |
{ |
| 30 |
$this->adapter->writeStream($path, $contents, $config); |
| 31 |
} |
| 32 |
|
| 33 |
public function read(string $path): string |
| 34 |
{ |
| 35 |
return $this->adapter->read($path); |
| 36 |
} |
| 37 |
|
| 38 |
public function readStream(string $path) |
| 39 |
{ |
| 40 |
return $this->adapter->readStream($path); |
| 41 |
} |
| 42 |
|
| 43 |
public function delete(string $path): void |
| 44 |
{ |
| 45 |
$this->adapter->delete($path); |
| 46 |
} |
| 47 |
|
| 48 |
public function deleteDirectory(string $path): void |
| 49 |
{ |
| 50 |
$this->adapter->deleteDirectory($path); |
| 51 |
} |
| 52 |
|
| 53 |
public function createDirectory(string $path, Config $config): void |
| 54 |
{ |
| 55 |
$this->adapter->createDirectory($path, $config); |
| 56 |
} |
| 57 |
|
| 58 |
public function setVisibility(string $path, string $visibility): void |
| 59 |
{ |
| 60 |
$this->adapter->setVisibility($path, $visibility); |
| 61 |
} |
| 62 |
|
| 63 |
public function visibility(string $path): FileAttributes |
| 64 |
{ |
| 65 |
return $this->adapter->visibility($path); |
| 66 |
} |
| 67 |
|
| 68 |
public function mimeType(string $path): FileAttributes |
| 69 |
{ |
| 70 |
return $this->adapter->mimeType($path); |
| 71 |
} |
| 72 |
|
| 73 |
public function lastModified(string $path): FileAttributes |
| 74 |
{ |
| 75 |
return $this->adapter->lastModified($path); |
| 76 |
} |
| 77 |
|
| 78 |
public function fileSize(string $path): FileAttributes |
| 79 |
{ |
| 80 |
return $this->adapter->fileSize($path); |
| 81 |
} |
| 82 |
|
| 83 |
public function listContents(string $path, bool $deep): iterable |
| 84 |
{ |
| 85 |
return $this->adapter->listContents($path, $deep); |
| 86 |
} |
| 87 |
|
| 88 |
public function move(string $source, string $destination, Config $config): void |
| 89 |
{ |
| 90 |
$this->adapter->move($source, $destination, $config); |
| 91 |
} |
| 92 |
|
| 93 |
public function copy(string $source, string $destination, Config $config): void |
| 94 |
{ |
| 95 |
$this->adapter->copy($source, $destination, $config); |
| 96 |
} |
| 97 |
} |
| 98 |
|