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