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