public function setRows(array $rows)
    {
        foreach ($rows as $row) {
            $columnNumber = 0;
            if (!is_array($row)) {
                $row = [$row];
            }
            foreach ($row as $column => $value) {
                $this->updateWidth($columnNumber, $this->length($column));
                $this->updateWidth($columnNumber, $this->length($value));
                if (!in_array($column, $this->columns)) {
                    $this->columns[] = $column;
                }
                $columnNumber++;
            }
            $this->rows[] = $row;
        }
    }