/** * @param Cell|string $cell * @param null|string $name * * @return $this */ public function addCell($cell, $name = null) { $cell = Table::buildCell($cell, $name); $cell->column = count($this); $cell->row = $this->row; $this->cells[] = $cell; return $this; }