addCell(EntityFactory::createCell($cellValue)); } return $row; } /** * @param array $cellValues * @param Style $rowStyle * @return Row */ protected function createStyledRowFromValues(array $cellValues, Style $rowStyle) { return $this->createRowFromValues($cellValues, $rowStyle); } /** * @param array $rowValues * @param Style|null $rowsStyle * @return Row[] */ protected function createRowsFromValues(array $rowValues, Style $rowsStyle = null) { $rows = []; foreach ($rowValues as $cellValues) { $rows[] = $this->createRowFromValues($cellValues, $rowsStyle); } return $rows; } /** * @param array $rowValues * @param Style $rowsStyle * @return Row[] */ protected function createStyledRowsFromValues(array $rowValues, Style $rowsStyle) { return $this->createRowsFromValues($rowValues, $rowsStyle); } }