1: <?php
2: 3: 4:
5: namespace cassandra;
6: class CounterColumn extends \TBase {
7: static $_TSPEC;
8:
9: public $name = null;
10: public $value = 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' => 'value',
21: 'type' => \TType::I64,
22: ),
23: );
24: }
25: if (is_array($vals)) {
26: parent::__construct(self::$_TSPEC, $vals);
27: }
28: }
29:
30: public function getName() {
31: return 'CounterColumn';
32: }
33:
34: public function read($input)
35: {
36: return $this->_read('CounterColumn', self::$_TSPEC, $input);
37: }
38: public function write($output) {
39: return $this->_write('CounterColumn', self::$_TSPEC, $output);
40: }
41: }
42:
43:
44: ?>
45: