TableRow
in package
FinalYes
Table of Contents
Properties
- $columns : array<string|int, mixed>
Methods
- __construct() : mixed
- 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, mixed>
$columns
= []
Methods
__construct()
public
__construct([array<string|int, TableColumn> $columns = [] ]) : mixed
Parameters
- $columns : array<string|int, TableColumn> = []
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
addColumn()
public
addColumn(TableColumn $tableColumn) : void
Parameters
- $tableColumn : TableColumn
getColumn()
public
getColumn(int $index) : TableColumn|null
Parameters
- $index : int
Return values
TableColumn|nullgetColumns()
public
getColumns() : array<string|int, TableColumn>
Return values
array<string|int, TableColumn>getFirstColumn()
public
getFirstColumn() : TableColumn
Return values
TableColumnremoveColumn()
public
removeColumn(int $columnIndex) : void
Parameters
- $columnIndex : int
toString()
public
toString() : string