for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cassandra\Request;
use Cassandra\Protocol\Frame;
class Prepare extends Request{
protected $opcode = Frame::OPCODE_PREPARE;
/**
*
* @var string
*/
protected $_cql;
* @param string $cql
public function __construct($cql) {
$this->_cql = $cql;
}
public function getBody(){
return pack('N', strlen($this->_cql)) . $this->_cql;