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

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

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

@param string $name

@return string
Get Goodbye String