_insideOf = $insideOf; $this->_pCount = $pCount; $this->_height = $height; $this->_style = new \PhpOffice\PhpWord\Style\Row(); if (!is_null($style)) { if (is_array($style)) { foreach ($style as $key => $value) { if (substr($key, 0, 1) != '_') { $key = '_' . $key; } $this->_style->setStyleValue($key, $value); } } } } /** * Add a cell * * @param int $width * @param mixed $style * @return \PhpOffice\PhpWord\Section\Table\Cell */ public function addCell($width = null, $style = null) { $cell = new Cell($this->_insideOf, $this->_pCount, $width, $style); $this->_cells[] = $cell; return $cell; } /** * Get all cells * * @return array */ public function getCells() { return $this->_cells; } /** * Get row style * * @return \PhpOffice\PhpWord\Style\Row */ public function getStyle() { return $this->_style; } /** * Get row height * * @return int */ public function getHeight() { return $this->_height; } }