public function __construct($vals = null)
{
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(1 => array('var' => 'start_key', 'type' => TType::STRING), 2 => array('var' => 'end_key', 'type' => TType::STRING), 3 => array('var' => 'start_token', 'type' => TType::STRING), 4 => array('var' => 'end_token', 'type' => TType::STRING), 5 => array('var' => 'count', 'type' => TType::I32));
}
if (is_array($vals)) {
if (isset($vals['start_key'])) {
$this->start_key = $vals['start_key'];
}
if (isset($vals['end_key'])) {
$this->end_key = $vals['end_key'];
}
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['count'])) {
$this->count = $vals['count'];
}
}
}