public function doRows($rows) { $this->previousRow = $rows; //should be the header row parent::doRows($rows); }