Example #1
0
 /**
  * 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;
 }
Example #2
0
 public function getBody()
 {
     $body = pack('N', strlen($this->_cql)) . $this->_cql;
     $body .= Request::queryParameters($this->_consistency, $this->_values, $this->_options);
     return $body;
 }