Пример #1
0
 /**
  * Parse row
  * @return array
  */
 protected function parseRow()
 {
     $content = [];
     if ($this->reader->hasHeader) {
         $this->initHeader();
     }
     $cells = $this->row->getCellIterator();
     $i = 0;
     foreach ($cells as $this->cell) {
         $header = $this->reader->hasHeader ? $this->header[$i] : $i;
         if ($this->needParsed($header, $i)) {
             $content[$header] = $this->cell->getValue();
         }
         $i++;
     }
     return $content;
 }