TableRow
in package
Table of Contents
- $columns : array<string|int, TableColumn>
- absorbRowContent() : void
- Push the content from the columns of a row onto this row.
- addColumn() : void
- getColumn() : TableColumn|null
- getColumns() : array<string|int, TableColumn>
- getFirstColumn() : TableColumn
- removeColumn() : void
- toString() : string
Properties
$columns
private
array<string|int, TableColumn>
$columns
= []
Methods
absorbRowContent()
Push the content from the columns of a row onto this row.
public
absorbRowContent(TableRow $targetRow) : void
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.
Parameters
- $targetRow : TableRow
Tags
Return values
void —addColumn()
public
addColumn(string $content, int $colSpan) : void
Parameters
- $content : string
- $colSpan : int
Return values
void —getColumn()
public
getColumn(int $index) : TableColumn|null
Parameters
- $index : int
Return values
TableColumn|null —getColumns()
public
getColumns() : array<string|int, TableColumn>
Return values
array<string|int, TableColumn> —getFirstColumn()
public
getFirstColumn() : TableColumn
Return values
TableColumn —removeColumn()
public
removeColumn(int $columnIndex) : void
Parameters
- $columnIndex : int
Return values
void —toString()
public
toString() : string