public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'type', 'type' => TType::I32), 2 => array('var' => 'rows', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'cassandra_CqlRow')), 3 => array('var' => 'num', 'type' => TType::I32)); } if (is_array($vals)) { parent::__construct(self::$_TSPEC, $vals); } }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'type', 'type' => TType::I32), 2 => array('var' => 'rows', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'cassandra_CqlRow')), 3 => array('var' => 'num', 'type' => TType::I32), 4 => array('var' => 'schema', 'type' => TType::STRUCT, 'class' => 'cassandra_CqlMetadata')); } if (is_array($vals)) { if (isset($vals['type'])) { $this->type = $vals['type']; } if (isset($vals['rows'])) { $this->rows = $vals['rows']; } if (isset($vals['num'])) { $this->num = $vals['num']; } if (isset($vals['schema'])) { $this->schema = $vals['schema']; } } }