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