From 2823c1aeddd2b2f59f0b1784c01d51fe8fd732ba Mon Sep 17 00:00:00 2001 From: Kim Pepper Date: Tue, 17 Dec 2024 07:51:51 +1100 Subject: [PATCH] Update docs in client template Signed-off-by: Kim Pepper --- util/template/client-class | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/util/template/client-class b/util/template/client-class index 71119f0c..1bf5bb93 100644 --- a/util/template/client-class +++ b/util/template/client-class @@ -142,9 +142,9 @@ class Client } /** - * Sends a raw request to the cluster - * @return callable|array - * @throws NoNodesAvailableException + * Send a raw request to the cluster. + * + * @throws \Psr\Http\Client\ClientExceptionInterface */ public function request(string $method, string $uri, array $attributes = []): array|string|null { @@ -155,6 +155,11 @@ class Client return $this->httpTransport->sendRequest($method, $uri, $params, $body, $options['headers'] ?? []); } + /** + * Send a request for an endpoint. + * + * @throws \Psr\Http\Client\ClientExceptionInterface + */ private function performRequest(AbstractEndpoint $endpoint): array|string|null { return $this->httpTransport->sendRequest(