1 | <?php |
||
11 | class PassthroughAdapter implements AdapterInterface |
||
12 | { |
||
13 | /** |
||
14 | * The wrapped adapter. |
||
15 | * |
||
16 | * @var \League\Flysystem\AdapterInterface |
||
17 | */ |
||
18 | private $adapter; |
||
19 | |||
20 | /** |
||
21 | * Constructs a PassthroughAdapter object. |
||
22 | * |
||
23 | * @param \League\Flysystem\AdapterInterface $adapter The adapter to wrap. |
||
24 | */ |
||
25 | 3 | public function __construct(AdapterInterface $adapter) |
|
29 | |||
30 | /** |
||
31 | * Returns the wrapped adapter. |
||
32 | * |
||
33 | * Subclasses should use this to access the adapter when overriding methods. |
||
34 | * |
||
35 | * @return League\Flysystem\AdapterInterface |
||
36 | */ |
||
37 | 3 | public function getAdapter() |
|
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | 3 | public function copy($path, $newpath) |
|
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | 3 | public function createDir($path, Config $config) |
|
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 3 | public function delete($path) |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 3 | public function deleteDir($path) |
|
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 3 | public function getMetadata($path) |
|
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | 3 | public function getMimetype($path) |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | 3 | public function getSize($path) |
|
97 | |||
98 | /** |
||
99 | * @inheritdoc |
||
100 | */ |
||
101 | 3 | public function getTimestamp($path) |
|
105 | |||
106 | /** |
||
107 | * @inheritdoc |
||
108 | */ |
||
109 | 3 | public function getVisibility($path) |
|
113 | |||
114 | /** |
||
115 | * @inheritdoc |
||
116 | */ |
||
117 | 3 | public function has($path) |
|
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | */ |
||
125 | 3 | public function listContents($directory = '', $recursive = false) |
|
129 | |||
130 | /** |
||
131 | * @inheritdoc |
||
132 | */ |
||
133 | 3 | public function read($path) |
|
137 | |||
138 | /** |
||
139 | * @inheritdoc |
||
140 | */ |
||
141 | 3 | public function readStream($path) |
|
145 | |||
146 | /** |
||
147 | * @inheritdoc |
||
148 | */ |
||
149 | 3 | public function rename($path, $newpath) |
|
153 | |||
154 | /** |
||
155 | * @inheritdoc |
||
156 | */ |
||
157 | 3 | public function setVisibility($path, $visibility) |
|
161 | |||
162 | /** |
||
163 | * @inheritdoc |
||
164 | */ |
||
165 | 3 | public function update($path, $contents, Config $config) |
|
169 | |||
170 | /** |
||
171 | * @inheritdoc |
||
172 | */ |
||
173 | 3 | public function updateStream($path, $resource, Config $config) |
|
177 | |||
178 | /** |
||
179 | * @inheritdoc |
||
180 | */ |
||
181 | 3 | public function write($path, $contents, Config $config) |
|
185 | |||
186 | /** |
||
187 | * @inheritdoc |
||
188 | */ |
||
189 | 3 | public function writeStream($path, $resource, Config $config) |
|
193 | } |
||
194 |