| @@ 54-60 (lines=7) @@ | ||
| 51 | * @param int $consistency |
|
| 52 | * @param array $options |
|
| 53 | */ |
|
| 54 | public function __construct($queryId, array $values, $consistency = null, $options = []) { |
|
| 55 | $this->_queryId = $queryId; |
|
| 56 | $this->_values = $values; |
|
| 57 | ||
| 58 | $this->_consistency = $consistency === null ? Request::CONSISTENCY_ONE : $consistency; |
|
| 59 | $this->_options = $options; |
|
| 60 | } |
|
| 61 | ||
| 62 | public function getBody(){ |
|
| 63 | $body = pack('n', strlen($this->_queryId)) . $this->_queryId; |
|
| @@ 58-63 (lines=6) @@ | ||
| 55 | * @param int $consistency |
|
| 56 | * @param array $options |
|
| 57 | */ |
|
| 58 | public function __construct($cql, $values = [], $consistency = null, $options = []) { |
|
| 59 | $this->_cql = $cql; |
|
| 60 | $this->_values = $values; |
|
| 61 | $this->_consistency = $consistency === null ? Request::CONSISTENCY_ONE : $consistency; |
|
| 62 | $this->_options = $options; |
|
| 63 | } |
|
| 64 | ||
| 65 | public function getBody(){ |
|
| 66 | $body = pack('N', strlen($this->_cql)) . $this->_cql; |
|