@@ -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 | { |
@@ -24,7 +24,6 @@ discard block |
||
| 24 | 24 | protected $resources = array(); |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @param Google\Cloud\Storage\StorageClient $service Authenticated storage client class |
|
| 28 | 27 | * @param string $bucketName Name of the bucket |
| 29 | 28 | * @param array $options Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists) |
| 30 | 29 | */ |
@@ -61,6 +60,11 @@ discard block |
||
| 61 | 60 | $this->options = array_replace($this->options, $options); |
| 62 | 61 | } |
| 63 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $key |
|
| 65 | + * |
|
| 66 | + * @return string |
|
| 67 | + */ |
|
| 64 | 68 | protected function computePath($key) |
| 65 | 69 | { |
| 66 | 70 | if (strlen($this->options['directory'])) |
@@ -86,6 +90,9 @@ discard block |
||
| 86 | 90 | return true; |
| 87 | 91 | } |
| 88 | 92 | |
| 93 | + /** |
|
| 94 | + * @param string $name |
|
| 95 | + */ |
|
| 89 | 96 | public function setBucket($name) |
| 90 | 97 | { |
| 91 | 98 | $this->bucketValidated = null; |
@@ -288,6 +295,7 @@ discard block |
||
| 288 | 295 | |
| 289 | 296 | /** |
| 290 | 297 | * {@inheritdoc} |
| 298 | + * @param string $resourceName |
|
| 291 | 299 | */ |
| 292 | 300 | public function getResourceByName($key, $resourceName) |
| 293 | 301 | { |