Example #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'auth_request', 'type' => TType::STRUCT, 'class' => 'cassandra_AuthenticationRequest'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
Example #2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'keyspace', 'type' => TType::STRING), 2 => array('var' => 'auth_request', 'type' => TType::STRUCT, 'class' => 'cassandra_AuthenticationRequest'));
     }
     if (is_array($vals)) {
         if (isset($vals['keyspace'])) {
             $this->keyspace = $vals['keyspace'];
         }
         if (isset($vals['auth_request'])) {
             $this->auth_request = $vals['auth_request'];
         }
     }
 }