1: <?php
2: 3: 4:
5: namespace cassandra;
6: class CqlMetadata extends \TBase {
7: static $_TSPEC;
8:
9: public $name_types = null;
10: public $value_types = null;
11: public $default_name_type = null;
12: public $default_value_type = null;
13:
14: public function __construct($vals=null) {
15: if (!isset(self::$_TSPEC)) {
16: self::$_TSPEC = array(
17: 1 => array(
18: 'var' => 'name_types',
19: 'type' => \TType::MAP,
20: 'ktype' => \TType::STRING,
21: 'vtype' => \TType::STRING,
22: 'key' => array(
23: 'type' => \TType::STRING,
24: ),
25: 'val' => array(
26: 'type' => \TType::STRING,
27: ),
28: ),
29: 2 => array(
30: 'var' => 'value_types',
31: 'type' => \TType::MAP,
32: 'ktype' => \TType::STRING,
33: 'vtype' => \TType::STRING,
34: 'key' => array(
35: 'type' => \TType::STRING,
36: ),
37: 'val' => array(
38: 'type' => \TType::STRING,
39: ),
40: ),
41: 3 => array(
42: 'var' => 'default_name_type',
43: 'type' => \TType::STRING,
44: ),
45: 4 => array(
46: 'var' => 'default_value_type',
47: 'type' => \TType::STRING,
48: ),
49: );
50: }
51: if (is_array($vals)) {
52: parent::__construct(self::$_TSPEC, $vals);
53: }
54: }
55:
56: public function getName() {
57: return 'CqlMetadata';
58: }
59:
60: public function read($input)
61: {
62: return $this->_read('CqlMetadata', self::$_TSPEC, $input);
63: }
64: public function write($output) {
65: return $this->_write('CqlMetadata', self::$_TSPEC, $output);
66: }
67: }
68:
69:
70: ?>
71: