responseHeaders = $responseHeaders; $this->responseBody = $responseBody; } /** * Gets the HTTP response header * * @return string[][]|null HTTP response header */ public function getResponseHeaders(): ?array { return $this->responseHeaders; } /** * Gets the HTTP body of the server response either as Json or string * * @return stdClass|string|null HTTP body of the server response either as \stdClass or string */ public function getResponseBody(): stdClass|string|null { return $this->responseBody; } /** * Sets the deserialized response object (during deserialization) * * @param mixed $obj Deserialized response object * * @return void */ public function setResponseObject(mixed $obj): void { $this->responseObject = $obj; } /** * Gets the deserialized response object (during deserialization) * * @return mixed the deserialized response object */ public function getResponseObject(): mixed { return $this->responseObject; } }