height = $height; $this->style = $this->setNewStyle(new RowStyle(), $style, true); } /** * Add a cell * * @param int $width * @param mixed $style * @return \PhpOffice\PhpWord\Element\Cell */ public function addCell($width = null, $style = null) { $cell = new Cell($width, $style); $cell->setParentContainer($this); $this->cells[] = $cell; return $cell; } /** * Get all cells * * @return \PhpOffice\PhpWord\Element\Cell[] */ 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; } }