public function getHelloString(string $name): string
    {
        $response = $this->httpClient->get(new Uri("{$this->baseUri}/hello/{$name}"), [
            'headers' => ['Content-Type' => 'application/json']
        ]);
        $body   = $response->getBody();
        $object = \json_decode($body);

        return $object->message;
    }
public function getHelloString(string $name): string
    {
        $response = $this->httpClient->get(new Uri("{$this->baseUri}/hello/{$name}"), [
            'headers' => ['Content-Type' => 'application/json']
        ]);
        $body   = $response->getBody();
        $object = \json_decode($body);

        return $object->message;
    }
public function getHelloString ( string $ name ) : string { $ response = $ this -> httpClient -> get ( new Uri ( "{$this->baseUri}/hello/{$name}" ) , [ 'headers' => [ 'Content-Type' => 'application/json' ] ] ) ; $ body = $ response -> getBody ( ) ; $ object = \ json_decode ( $ body ) ; return $ object -> message ; }
Get Hello String

@param string $name

@return string
Get Hello String