public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'mutation_map', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::MAP, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::LST, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'cassandra_Mutation')))), 2 => array('var' => 'consistency_level', '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' => 'keyspace', 'type' => TType::STRING), 2 => array('var' => 'mutation_map', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::MAP, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::LST, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'cassandra_Mutation')))), 3 => array('var' => 'consistency_level', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['keyspace'])) { $this->keyspace = $vals['keyspace']; } if (isset($vals['mutation_map'])) { $this->mutation_map = $vals['mutation_map']; } if (isset($vals['consistency_level'])) { $this->consistency_level = $vals['consistency_level']; } } }