private function putLineValuesInSpreadsheet()
 {
     $lines = $this->dataToExcel->getAllLinesValues()->getIterator();
     $currentSheet = $this->writer->getActiveSheet();
     $row = 2;
     while ($lines->valid()) {
         foreach ($lines->current() as $index => $lineValue) {
             $currentSheet->setCellValueByColumnAndRow($index, $row, $lineValue);
         }
         ++$row;
         $lines->next();
     }
 }
 protected function setProperties(ArrayObject $group, Data $data, array $years)
 {
     array_push($this->valuesOfARow, $data->getTypeName());
     array_push($this->valuesOfARow, utf8_encode($data->getVarietyName()));
     array_push($this->valuesOfARow, $data->getOriginName());
     array_push($this->valuesOfARow, $data->getDestinyName());
     array_push($this->valuesOfARow, $data->getFontName());
     parent::listValuesVerifyingTheYearOfThat($group, $years);
     $this->dataToExcel->setValues($this->valuesOfARow);
     $this->valuesOfARow = array();
 }
 function printLines(DataToExcel $dataToExcel){
     $iterator = $dataToExcel->getAllLinesValues()->getIterator();
     printer($iterator);
 }