1: <?php
2: 3: 4:
5: namespace cassandra;
6: class CounterSuperColumn extends \TBase {
7: static $_TSPEC;
8:
9: public $name = null;
10: public $columns = null;
11:
12: public function __construct($vals=null) {
13: if (!isset(self::$_TSPEC)) {
14: self::$_TSPEC = array(
15: 1 => array(
16: 'var' => 'name',
17: 'type' => \TType::STRING,
18: ),
19: 2 => array(
20: 'var' => 'columns',
21: 'type' => \TType::LST,
22: 'etype' => \TType::STRUCT,
23: 'elem' => array(
24: 'type' => \TType::STRUCT,
25: 'class' => '\cassandra\CounterColumn',
26: ),
27: ),
28: );
29: }
30: if (is_array($vals)) {
31: parent::__construct(self::$_TSPEC, $vals);
32: }
33: }
34:
35: public function getName() {
36: return 'CounterSuperColumn';
37: }
38:
39: public function read($input)
40: {
41: return $this->_read('CounterSuperColumn', self::$_TSPEC, $input);
42: }
43: public function write($output) {
44: return $this->_write('CounterSuperColumn', self::$_TSPEC, $output);
45: }
46: }
47:
48:
49: ?>
50: