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