@@ -23,7 +23,6 @@ discard block |
||
| 23 | 23 | protected $resources = array(); |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @param Google\Cloud\Storage\StorageClient $service Authenticated storage client class |
|
| 27 | 26 | * @param string $bucketName Name of the bucket |
| 28 | 27 | * @param array $options Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists) |
| 29 | 28 | */ |
@@ -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 = null) |
| 65 | 69 | { |
| 66 | 70 | if (strlen($this->options['directory'])) |
@@ -82,6 +86,9 @@ discard block |
||
| 82 | 86 | return true; |
| 83 | 87 | } |
| 84 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $name |
|
| 91 | + */ |
|
| 85 | 92 | public function setBucket($name) |
| 86 | 93 | { |
| 87 | 94 | $this->bucketValidated = null; |
@@ -279,6 +286,7 @@ discard block |
||
| 279 | 286 | |
| 280 | 287 | /** |
| 281 | 288 | * {@inheritdoc} |
| 289 | + * @param string $resourceName |
|
| 282 | 290 | */ |
| 283 | 291 | public function getResourceByName($key, $resourceName) |
| 284 | 292 | { |