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