1: <?php
2: 3: 4:
5: namespace cassandra;
6: class SliceRange extends \TBase {
7: static $_TSPEC;
8:
9: public $start = null;
10: public $finish = null;
11: public $reversed = false;
12: public $count = 100;
13:
14: public function __construct($vals=null) {
15: if (!isset(self::$_TSPEC)) {
16: self::$_TSPEC = array(
17: 1 => array(
18: 'var' => 'start',
19: 'type' => \TType::STRING,
20: ),
21: 2 => array(
22: 'var' => 'finish',
23: 'type' => \TType::STRING,
24: ),
25: 3 => array(
26: 'var' => 'reversed',
27: 'type' => \TType::BOOL,
28: ),
29: 4 => array(
30: 'var' => 'count',
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 'SliceRange';
42: }
43:
44: public function read($input)
45: {
46: return $this->_read('SliceRange', self::$_TSPEC, $input);
47: }
48: public function write($output) {
49: return $this->_write('SliceRange', self::$_TSPEC, $output);
50: }
51: }
52:
53:
54: ?>
55: