@@ -145,6 +145,9 @@ |
||
145 | 145 | return isset($this->metadata[$key]) ? $this->metadata[$key] : array(); |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $key |
|
150 | + */ |
|
148 | 151 | private function find($key, array $fields = array()) |
149 | 152 | { |
150 | 153 | return $this->gridFS->findOne($key, $fields); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @param string $key |
86 | 86 | * |
87 | - * @return string|bool if cannot read content |
|
87 | + * @return string if cannot read content |
|
88 | 88 | */ |
89 | 89 | public function read($key) |
90 | 90 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @param string $key |
158 | 158 | * |
159 | - * @return int|bool An UNIX like timestamp or false |
|
159 | + * @return string|false An UNIX like timestamp or false |
|
160 | 160 | */ |
161 | 161 | public function mtime($key) |
162 | 162 | { |
@@ -145,6 +145,9 @@ |
||
145 | 145 | return isset($this->metadata[$key]) ? $this->metadata[$key] : array(); |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $key |
|
150 | + */ |
|
148 | 151 | private function find($key, array $fields = array()) |
149 | 152 | { |
150 | 153 | return $this->gridFS->findOne($key, $fields); |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | protected $metadata = array(); |
22 | 22 | protected $detectContentType; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $bucket |
|
26 | + */ |
|
24 | 27 | public function __construct(S3Client $service, $bucket, array $options = array(), $detectContentType = false) |
25 | 28 | { |
26 | 29 | $this->service = $service; |
@@ -282,6 +285,9 @@ discard block |
||
282 | 285 | return true; |
283 | 286 | } |
284 | 287 | |
288 | + /** |
|
289 | + * @param string $key |
|
290 | + */ |
|
285 | 291 | protected function getOptions($key, array $options = array()) |
286 | 292 | { |
287 | 293 | $options['ACL'] = $this->options['acl']; |
@@ -297,6 +303,9 @@ discard block |
||
297 | 303 | return $options; |
298 | 304 | } |
299 | 305 | |
306 | + /** |
|
307 | + * @return string |
|
308 | + */ |
|
300 | 309 | protected function computePath($key) |
301 | 310 | { |
302 | 311 | if (empty($this->options['directory'])) { |