@@ 113-119 (lines=7) @@ | ||
110 | * |
|
111 | * @return mixed |
|
112 | */ |
|
113 | public function getMetadataItem(string $key) |
|
114 | { |
|
115 | $response = $this->execute($this->api->getImageMetadataKey(), ['id' => $this->id, 'key' => $key]); |
|
116 | $value = $this->parseMetadata($response)[$key]; |
|
117 | $this->metadata[$key] = $value; |
|
118 | return $value; |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * Remove a specific metadata key. |
@@ 398-404 (lines=7) @@ | ||
395 | * |
|
396 | * @return mixed |
|
397 | */ |
|
398 | public function getMetadataItem(string $key) |
|
399 | { |
|
400 | $response = $this->execute($this->api->getServerMetadataKey(), ['id' => $this->id, 'key' => $key]); |
|
401 | $value = $this->parseMetadata($response)[$key]; |
|
402 | $this->metadata[$key] = $value; |
|
403 | return $value; |
|
404 | } |
|
405 | ||
406 | /** |
|
407 | * Remove a specific metadata key. |