public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'operationHandle', 'type' => TType::STRUCT, 'class' => '\\TOperationHandle'), 2 => array('var' => 'orientation', 'type' => TType::I32), 3 => array('var' => 'maxRows', 'type' => TType::I64), 4 => array('var' => 'fetchType', 'type' => TType::I16)); } if (is_array($vals)) { if (isset($vals['operationHandle'])) { $this->operationHandle = $vals['operationHandle']; } if (isset($vals['orientation'])) { $this->orientation = $vals['orientation']; } if (isset($vals['maxRows'])) { $this->maxRows = $vals['maxRows']; } if (isset($vals['fetchType'])) { $this->fetchType = $vals['fetchType']; } } }