TableStyle
in package
implements
JsonSerializable
FinalYes
Overall table style configuration.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $cells : TableCellStyle|null
- The default cell style.
- $columns : TableColumnStyle|null
- The default column style.
- $conditional : array<int, array<string, mixed>>|null
- Conditional styles.
- $headerCells : TableCellStyle|null
- The header cell style.
- $headerColumns : TableColumnStyle|null
- The header column style.
- $headerRows : TableRowStyle|null
- The header row style.
- $rows : TableRowStyle|null
- The default row style.
Methods
- jsonSerialize() : array<string, mixed>
- {@inheritdoc}
- setCells() : $this
- Set the default cell style.
- setColumns() : $this
- Set the default column style.
- setConditional() : $this
- Set conditional styles.
- setHeaderCells() : $this
- Set the header cell style.
- setHeaderColumns() : $this
- Set the header column style.
- setHeaderRows() : $this
- Set the header row style.
- setRows() : $this
- Set the default row style.
Properties
$cells
The default cell style.
private
TableCellStyle|null
$cells
= null
$columns
The default column style.
private
TableColumnStyle|null
$columns
= null
$conditional
Conditional styles.
private
array<int, array<string, mixed>>|null
$conditional
= null
$headerCells
The header cell style.
private
TableCellStyle|null
$headerCells
= null
$headerColumns
The header column style.
private
TableColumnStyle|null
$headerColumns
= null
$headerRows
The header row style.
private
TableRowStyle|null
$headerRows
= null
$rows
The default row style.
private
TableRowStyle|null
$rows
= null
Methods
jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>setCells()
Set the default cell style.
public
setCells(TableCellStyle $style) : $this
Parameters
- $style : TableCellStyle
-
The cell style.
Return values
$thissetColumns()
Set the default column style.
public
setColumns(TableColumnStyle $style) : $this
Parameters
- $style : TableColumnStyle
-
The column style.
Return values
$thissetConditional()
Set conditional styles.
public
setConditional(array<int, array<string, mixed>> $conditional) : $this
Parameters
- $conditional : array<int, array<string, mixed>>
-
The conditional styles.
Return values
$thissetHeaderCells()
Set the header cell style.
public
setHeaderCells(TableCellStyle $style) : $this
Parameters
- $style : TableCellStyle
-
The cell style.
Return values
$thissetHeaderColumns()
Set the header column style.
public
setHeaderColumns(TableColumnStyle $style) : $this
Parameters
- $style : TableColumnStyle
-
The column style.
Return values
$thissetHeaderRows()
Set the header row style.
public
setHeaderRows(TableRowStyle $style) : $this
Parameters
- $style : TableRowStyle
-
The row style.
Return values
$thissetRows()
Set the default row style.
public
setRows(TableRowStyle $style) : $this
Parameters
- $style : TableRowStyle
-
The row style.