示例#1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'start_token', 'type' => TType::STRING), 2 => array('var' => 'end_token', 'type' => TType::STRING), 3 => array('var' => 'endpoints', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)));
     }
     if (is_array($vals)) {
         if (isset($vals['start_token'])) {
             $this->start_token = $vals['start_token'];
         }
         if (isset($vals['end_token'])) {
             $this->end_token = $vals['end_token'];
         }
         if (isset($vals['endpoints'])) {
             $this->endpoints = $vals['endpoints'];
         }
     }
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'start_token', 'type' => TType::STRING), 2 => array('var' => 'end_token', 'type' => TType::STRING), 3 => array('var' => 'endpoints', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 4 => array('var' => 'rpc_endpoints', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 5 => array('var' => 'endpoint_details', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'cassandra_EndpointDetails')));
     }
     if (is_array($vals)) {
         if (isset($vals['start_token'])) {
             $this->start_token = $vals['start_token'];
         }
         if (isset($vals['end_token'])) {
             $this->end_token = $vals['end_token'];
         }
         if (isset($vals['endpoints'])) {
             $this->endpoints = $vals['endpoints'];
         }
         if (isset($vals['rpc_endpoints'])) {
             $this->rpc_endpoints = $vals['rpc_endpoints'];
         }
         if (isset($vals['endpoint_details'])) {
             $this->endpoint_details = $vals['endpoint_details'];
         }
     }
 }