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