Apple News API PHP Client

TableRowSelector
in package
implements JsonSerializable

FinalYes

Selector for targeting specific table rows.

Tags
see
https://developer.apple.com/documentation/apple_news/tablerowselector

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

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
$this

setEven()

Set to select even rows.

public setEven() : $this
Return values
$this

setOdd()

Set to select odd rows.

public setOdd() : $this
Return values
$this

setRowIndex()

Set the row index.

public setRowIndex(int $index) : $this
Parameters
$index : int

The row index.

Return values
$this

        
On this page

Search results