@@ -307,6 +307,9 @@ discard block |
||
307 | 307 | return true; |
308 | 308 | } |
309 | 309 | |
310 | + /** |
|
311 | + * @param string $key |
|
312 | + */ |
|
310 | 313 | protected function getOptions($key, array $options = []) |
311 | 314 | { |
312 | 315 | $options['ACL'] = $this->options['acl']; |
@@ -322,6 +325,9 @@ discard block |
||
322 | 325 | return $options; |
323 | 326 | } |
324 | 327 | |
328 | + /** |
|
329 | + * @return string |
|
330 | + */ |
|
325 | 331 | protected function computePath($key) |
326 | 332 | { |
327 | 333 | if (empty($this->options['directory'])) { |
@@ -22,7 +22,6 @@ discard block |
||
22 | 22 | protected $resources = array(); |
23 | 23 | |
24 | 24 | /** |
25 | - * @param Google\Cloud\Storage\StorageClient $service Authenticated storage client class |
|
26 | 25 | * @param string $bucketName Name of the bucket |
27 | 26 | * @param array $options Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists) |
28 | 27 | */ |
@@ -81,6 +80,9 @@ discard block |
||
81 | 80 | return true; |
82 | 81 | } |
83 | 82 | |
83 | + /** |
|
84 | + * @param string $name |
|
85 | + */ |
|
84 | 86 | public function setBucket($name) |
85 | 87 | { |
86 | 88 | $this->bucketValidated = null; |
@@ -269,6 +271,7 @@ discard block |
||
269 | 271 | |
270 | 272 | /** |
271 | 273 | * {@inheritdoc} |
274 | + * @param string $key |
|
272 | 275 | */ |
273 | 276 | public function setResources($key, $data) |
274 | 277 | { |
@@ -286,6 +289,8 @@ discard block |
||
286 | 289 | |
287 | 290 | /** |
288 | 291 | * {@inheritdoc} |
292 | + * @param string $key |
|
293 | + * @param string $resourceName |
|
289 | 294 | */ |
290 | 295 | public function getResourceByName($key, $resourceName) |
291 | 296 | { |
@@ -346,6 +346,11 @@ discard block |
||
346 | 346 | } |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param string $key |
|
351 | + * |
|
352 | + * @return string |
|
353 | + */ |
|
349 | 354 | protected function computePath($key) |
350 | 355 | { |
351 | 356 | if (empty($this->options['directory'])) { |
@@ -359,7 +364,7 @@ discard block |
||
359 | 364 | * @param string $path |
360 | 365 | * @param array $options |
361 | 366 | * |
362 | - * @return bool|\Google_Service_Storage_StorageObject |
|
367 | + * @return string |
|
363 | 368 | */ |
364 | 369 | private function getObjectData($path, $options = array()) |
365 | 370 | { |