| @@ 124-134 (lines=11) @@ | ||
| 121 | /** |
|
| 122 | * {@inheritdoc} |
|
| 123 | */ |
|
| 124 | public function mergeMetadata(array $metadata) |
|
| 125 | { |
|
| 126 | $options = [ |
|
| 127 | 'containerName' => $this->containerName, |
|
| 128 | 'name' => $this->name, |
|
| 129 | 'metadata' => array_merge($metadata, $this->getMetadata()), |
|
| 130 | ]; |
|
| 131 | ||
| 132 | $response = $this->execute($this->api->postObject(), $options); |
|
| 133 | return $this->parseMetadata($response); |
|
| 134 | } |
|
| 135 | ||
| 136 | /** |
|
| 137 | * {@inheritdoc} |
|
| @@ 139-149 (lines=11) @@ | ||
| 136 | /** |
|
| 137 | * {@inheritdoc} |
|
| 138 | */ |
|
| 139 | public function resetMetadata(array $metadata) |
|
| 140 | { |
|
| 141 | $options = [ |
|
| 142 | 'containerName' => $this->containerName, |
|
| 143 | 'name' => $this->name, |
|
| 144 | 'metadata' => $metadata, |
|
| 145 | ]; |
|
| 146 | ||
| 147 | $response = $this->execute($this->api->postObject(), $options); |
|
| 148 | return $this->parseMetadata($response); |
|
| 149 | } |
|
| 150 | ||
| 151 | /** |
|
| 152 | * {@inheritdoc} |
|