| @@ 148-158 (lines=11) @@ | ||
| 145 | /** |
|
| 146 | * {@inheritdoc} |
|
| 147 | */ |
|
| 148 | public function mergeMetadata(array $metadata) |
|
| 149 | { |
|
| 150 | $options = [ |
|
| 151 | 'containerName' => $this->containerName, |
|
| 152 | 'name' => $this->name, |
|
| 153 | 'metadata' => array_merge($metadata, $this->getMetadata()), |
|
| 154 | ]; |
|
| 155 | ||
| 156 | $response = $this->execute($this->api->postObject(), $options); |
|
| 157 | $this->metadata = $this->parseMetadata($response); |
|
| 158 | } |
|
| 159 | ||
| 160 | /** |
|
| 161 | * {@inheritdoc} |
|
| @@ 163-173 (lines=11) @@ | ||
| 160 | /** |
|
| 161 | * {@inheritdoc} |
|
| 162 | */ |
|
| 163 | public function resetMetadata(array $metadata) |
|
| 164 | { |
|
| 165 | $options = [ |
|
| 166 | 'containerName' => $this->containerName, |
|
| 167 | 'name' => $this->name, |
|
| 168 | 'metadata' => $metadata, |
|
| 169 | ]; |
|
| 170 | ||
| 171 | $response = $this->execute($this->api->postObject(), $options); |
|
| 172 | $this->metadata = $this->parseMetadata($response); |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * {@inheritdoc} |
|