1 | <?php |
||
8 | class Disk implements DiskInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var DriverInterface |
||
12 | */ |
||
13 | protected $driver; |
||
14 | |||
15 | /** |
||
16 | * @param DriverInterface $driver |
||
17 | */ |
||
18 | public function __construct(DriverInterface $driver) |
||
22 | |||
23 | /** |
||
24 | * @override |
||
25 | * @inheritDoc |
||
26 | */ |
||
27 | public function setLoop(LoopInterface $loop = null) |
||
31 | |||
32 | /** |
||
33 | * @override |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | public function getLoop() |
||
40 | |||
41 | /** |
||
42 | * @override |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | public function access($path, $mode = 0755) |
||
49 | |||
50 | /** |
||
51 | * @override |
||
52 | * @inheritDoc |
||
53 | */ |
||
54 | public function append($path, $data = '') |
||
58 | |||
59 | /** |
||
60 | * @override |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | public function chmod($path, $mode) |
||
67 | |||
68 | /** |
||
69 | * @override |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | public function chown($path, $uid = -1, $gid = -1) |
||
76 | |||
77 | /** |
||
78 | * @override |
||
79 | * @inheritDoc |
||
80 | */ |
||
81 | public function exists($path) |
||
85 | |||
86 | /** |
||
87 | * @override |
||
88 | * @inheritDoc |
||
89 | */ |
||
90 | public function link($srcPath, $dstPath) |
||
94 | |||
95 | /** |
||
96 | * @override |
||
97 | * @inheritDoc |
||
98 | */ |
||
99 | public function ls($path) |
||
103 | |||
104 | /** |
||
105 | * @override |
||
106 | * @inheritDoc |
||
107 | */ |
||
108 | public function mkdir($path, $mode = 0755) |
||
112 | |||
113 | /** |
||
114 | * @override |
||
115 | * @inheritDoc |
||
116 | */ |
||
117 | public function prepend($path, $data = '') |
||
121 | |||
122 | /** |
||
123 | * @override |
||
124 | * @inheritDoc |
||
125 | */ |
||
126 | public function readlink($path) |
||
130 | |||
131 | /** |
||
132 | * @override |
||
133 | * @inheritDoc |
||
134 | */ |
||
135 | public function realpath($path) |
||
139 | |||
140 | /** |
||
141 | * @override |
||
142 | * @inheritDoc |
||
143 | */ |
||
144 | public function rename($srcPath, $dstPath) |
||
148 | |||
149 | /** |
||
150 | * @override |
||
151 | * @inheritDoc |
||
152 | */ |
||
153 | public function rmdir($path) |
||
157 | |||
158 | /** |
||
159 | * @override |
||
160 | * @inheritDoc |
||
161 | */ |
||
162 | public function stat($path) |
||
166 | |||
167 | /** |
||
168 | * @override |
||
169 | * @inheritDoc |
||
170 | */ |
||
171 | public function symlink($srcPath, $dstPath) |
||
175 | |||
176 | /** |
||
177 | * @override |
||
178 | * @inheritDoc |
||
179 | */ |
||
180 | public function truncate($path, $len = 0) |
||
184 | |||
185 | /** |
||
186 | * @override |
||
187 | * @inheritDoc |
||
188 | */ |
||
189 | public function unlink($path) |
||
193 | } |
||
194 |