public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'start', 'type' => TType::STRING), 2 => array('var' => 'finish', 'type' => TType::STRING), 3 => array('var' => 'reversed', 'type' => TType::BOOL), 4 => array('var' => 'count', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['start'])) { $this->start = $vals['start']; } if (isset($vals['finish'])) { $this->finish = $vals['finish']; } if (isset($vals['reversed'])) { $this->reversed = $vals['reversed']; } if (isset($vals['count'])) { $this->count = $vals['count']; } } }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'start', 'type' => TType::STRING), 2 => array('var' => 'finish', 'type' => TType::STRING), 3 => array('var' => 'reversed', 'type' => TType::BOOL), 4 => array('var' => 'count', 'type' => TType::I32)); } if (is_array($vals)) { parent::__construct(self::$_TSPEC, $vals); } }