original_string: public function sendData($data)
      {
          $httpResponse = $this->httpClient->post(
              $this->getEndpoint(),
              ['Content-Type' => 'text/xml; charset=utf-8'],
              $this->xmlSerialize($data)
          )->send();
  
          return $this->response = $this->newResponse( $httpResponse->xml() );
      }
code: public function sendData($data)
      {
          $httpResponse = $this->httpClient->post(
              $this->getEndpoint(),
              ['Content-Type' => 'text/xml; charset=utf-8'],
              $this->xmlSerialize($data)
          )->send();
  
          return $this->response = $this->newResponse( $httpResponse->xml() );
      }
code_tokens: public function sendData ( $ data ) { $ httpResponse = $ this -> httpClient -> post ( $ this -> getEndpoint ( ) , [ 'Content-Type' => 'text/xml; charset=utf-8' ] , $ this -> xmlSerialize ( $ data ) ) -> send ( ) ; return $ this -> response = $ this -> newResponse ( $ httpResponse -> xml ( ) ) ; }
docstring: Send the request payload
  
  @param array $data Request payload
  
  @return ResponseInterface
docstring_tokens: Send the request payload