context = $context; return $cloned; } public function getMetadata(string|int $id, array $opts = []): array { $response = Container::get(GetMetaData::class)(context: $this->context, id: $id, opts: $opts); if (!$response->isSuccessful()) { throw new RuntimeException(message: $response->error->format(), previous: $response->error->previous); } return $response->response; } }