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