public function absorbRowContent(TableRow $targetRow) : void
    {
        // iterate over each column and combine the content
        foreach ($this->getColumns() as $columnIndex => $column) {
            $targetColumn = $targetRow->getColumn($columnIndex);
            if ($targetColumn === null) {
                throw new InvalidTableStructure(sprintf('Malformed table: lines "%s" and "%s" appear to be in the same row, but don\'t share the same number of columns.', $this->toString(), $targetRow->toString()));
            }

            $column->addContent("\n" . $targetColumn->getContent());
        }
    }
public function absorbRowContent(TableRow $targetRow) : void
    {
        // iterate over each column and combine the content
        foreach ($this->getColumns() as $columnIndex => $column) {
            $targetColumn = $targetRow->getColumn($columnIndex);
            if ($targetColumn === null) {
                throw new InvalidTableStructure(sprintf('Malformed table: lines "%s" and "%s" appear to be in the same row, but don\'t share the same number of columns.', $this->toString(), $targetRow->toString()));
            }

            $column->addContent("\n" . $targetColumn->getContent());
        }
    }
public function absorbRowContent ( TableRow $ targetRow ) : void { // iterate over each column and combine the content foreach ( $ this -> getColumns ( ) as $ columnIndex => $ column ) { $ targetColumn = $ targetRow -> getColumn ( $ columnIndex ) ; if ( $ targetColumn === null ) { throw new InvalidTableStructure ( sprintf ( 'Malformed table: lines "%s" and "%s" appear to be in the same row, but don\'t share the same number of columns.' , $ this -> toString ( ) , $ targetRow -> toString ( ) ) ) ; } $ column -> addContent ( "\n" . $ targetColumn -> getContent ( ) ) ; } }
Push the content from the columns of a row onto this row.

Useful when we discover that a row is actually just a continuation
of this row, and so we want to copy the content to this row's
columns before removing the row.

@throws InvalidTableStructure
Push the content from the columns of a row onto this row .