TableColumnSelector
in package
implements
JsonSerializable
FinalYes
Selector for targeting specific table columns.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $columnIndex : int|null
- The column index.
- $descriptor : string|null
- The descriptor identifier.
- $even : bool|null
- Whether to select even columns.
- $odd : bool|null
- Whether to select odd columns.
Methods
- column() : self
- Create a selector for a specific column.
- evenColumns() : self
- Create a selector for even columns.
- jsonSerialize() : array<string, mixed>
- {@inheritdoc}
- oddColumns() : self
- Create a selector for odd columns.
- setColumnIndex() : $this
- Set the column index.
- setDescriptor() : $this
- Set the descriptor identifier.
- setEven() : $this
- Set to select even columns.
- setOdd() : $this
- Set to select odd columns.
Properties
$columnIndex
The column index.
private
int|null
$columnIndex
= null
$descriptor
The descriptor identifier.
private
string|null
$descriptor
= null
$even
Whether to select even columns.
private
bool|null
$even
= null
$odd
Whether to select odd columns.
private
bool|null
$odd
= null
Methods
column()
Create a selector for a specific column.
public
static column(int $index) : self
Parameters
- $index : int
-
The column index.
Return values
self —A new instance.
evenColumns()
Create a selector for even columns.
public
static evenColumns() : self
Return values
self —A new instance.
jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>oddColumns()
Create a selector for odd columns.
public
static oddColumns() : self
Return values
self —A new instance.
setColumnIndex()
Set the column index.
public
setColumnIndex(int $index) : $this
Parameters
- $index : int
-
The column index.
Return values
$thissetDescriptor()
Set the descriptor identifier.
public
setDescriptor(string $descriptor) : $this
Parameters
- $descriptor : string
-
The descriptor ID.
Return values
$thissetEven()
Set to select even columns.
public
setEven() : $this
Return values
$thissetOdd()
Set to select odd columns.
public
setOdd() : $this