src/Message/QueryTransferRequest.php
public function sendData($data)
    {
        $options = array(
            CURLOPT_SSL_VERIFYPEER => true,
            CURLOPT_SSL_VERIFYHOST => 2,
            CURLOPT_SSLCERTTYPE    => 'PEM',
            CURLOPT_SSLKEYTYPE     => 'PEM',
            CURLOPT_SSLCERT        => $this->getCertPath(),
            CURLOPT_SSLKEY         => $this->getKeyPath(),
        );

        $body         = Helper::array2xml($data);
        $request      = $this->httpClient->request('POST', $this->endpoint, $options, $body);
        $response     = $request->getBody();
        $responseData = Helper::xml2array($response);

        return $this->response = new QueryTransferResponse($this, $responseData);
    }
public function sendData($data)
    {
        $options = array(
            CURLOPT_SSL_VERIFYPEER => true,
            CURLOPT_SSL_VERIFYHOST => 2,
            CURLOPT_SSLCERTTYPE    => 'PEM',
            CURLOPT_SSLKEYTYPE     => 'PEM',
            CURLOPT_SSLCERT        => $this->getCertPath(),
            CURLOPT_SSLKEY         => $this->getKeyPath(),
        );

        $body         = Helper::array2xml($data);
        $request      = $this->httpClient->request('POST', $this->endpoint, $options, $body);
        $response     = $request->getBody();
        $responseData = Helper::xml2array($response);

        return $this->response = new QueryTransferResponse($this, $responseData);
    }
Send the request with specified data

@param  mixed $data The data to send

@return ResponseInterface