1 | <?php |
||
7 | class ResolvableFilesystem implements FilesystemInterface |
||
8 | { |
||
9 | /** @var FilesystemInterface */ |
||
10 | private $decorated; |
||
11 | |||
12 | /** @var ResolverInterface */ |
||
13 | private $resolver; |
||
14 | |||
15 | public function __construct(FilesystemInterface $decorated, ResolverInterface $resolver) |
||
20 | |||
21 | /** |
||
22 | * @param string $key Object path. |
||
23 | * |
||
24 | * @throws UnresolvableObjectException When not able to resolve the object path. Any exception thrown by underlying |
||
25 | * resolver will be converted to this exception. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function resolve($key) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function has($key) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function rename($sourceKey, $targetKey) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function get($key, $create = false) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function write($key, $content, $overwrite = false) |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function read($key) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function delete($key) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function keys() |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function listKeys($prefix = '') |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function mtime($key) |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function checksum($key) |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function size($key) |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function createStream($key) |
||
133 | |||
134 | /** |
||
135 | * {@inheritdoc} |
||
136 | */ |
||
137 | public function createFile($key) |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function mimeType($key) |
||
149 | |||
150 | /** |
||
151 | * {@inheritdoc} |
||
152 | */ |
||
153 | public function isDirectory($key) |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function __call($name, $arguments) |
||
165 | } |
||
166 |