/** * Exec transaction */ public function getBody() { $body = pack('C', $this->_batchType); $body .= pack('n', count($this->_queryArray)) . implode('', $this->_queryArray); $body .= Request::queryParameters($this->_consistency, [], $this->_options); return $body; }
public function getBody() { $body = pack('N', strlen($this->_cql)) . $this->_cql; $body .= Request::queryParameters($this->_consistency, $this->_values, $this->_options); return $body; }