/** * @param array $body * * @return $this|Table|Document */ public function body(array $body) { foreach ($body as $rowValues) { $row = $this->body->append('tr'); foreach ($rowValues as $value) { $row->append('td')->append($value); } } return $this; }