Apple News API PHP Client

TableColumnSelector
in package
implements JsonSerializable

FinalYes

Selector for targeting specific table columns.

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

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

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

setDescriptor()

Set the descriptor identifier.

public setDescriptor(string $descriptor) : $this
Parameters
$descriptor : string

The descriptor ID.

Return values
$this

        
On this page

Search results