private function buildHeaderRow($table) { if (!empty($this->headerLabels)) { $headerRow = new Row($this->headerLabels, $this->hidedColumns); $thead = $headerRow->renderHeaderRow($this->sortingEnabled); $table->add($thead); } }
/** * @param $matches * @return mixed * * @SuppressWarnings(PHPMD.UnusedPrivateMethod) */ private function translateMatch($matches) { $cellName = $matches[1]; /** @var Cell $cell */ $cell = $this->row->getCellByCellName($cellName); if (!$cell) { return $matches[0]; } return $cell->getCellData(); }