Exemplo n.º 1
0
 /**
  * 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->setDocPart($this->getDocPart(), $this->getDocPartId());
     $cell->setPhpWord($this->phpWord);
     $cell->setNestedLevel($this->getNestedLevel());
     $this->cells[] = $cell;
     return $cell;
 }