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