Apple News API PHP Client

TableColumnStyle
in package
implements JsonSerializable

FinalYes

Style for table columns.

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

Table of Contents

Interfaces

JsonSerializable

Properties

$backgroundColor  : string|null
The background color.
$conditional  : array<int, array<string, mixed>>|null
Conditional styles.
$divider  : TableStrokeStyle|null
The column divider.
$maximumWidth  : int|null
The maximum column width.
$minimumWidth  : int|null
The minimum column width.
$width  : int|null
The column width.

Methods

jsonSerialize()  : array<string, mixed>
{@inheritdoc}
setBackgroundColor()  : $this
Set the background color.
setConditional()  : $this
Set conditional styles.
setDivider()  : $this
Set the column divider.
setMaximumWidth()  : $this
Set the maximum column width.
setMinimumWidth()  : $this
Set the minimum column width.
setWidth()  : $this
Set the column width.

Properties

$backgroundColor

The background color.

private string|null $backgroundColor = null

$conditional

Conditional styles.

private array<int, array<string, mixed>>|null $conditional = null

$maximumWidth

The maximum column width.

private int|null $maximumWidth = null

$minimumWidth

The minimum column width.

private int|null $minimumWidth = null

Methods

jsonSerialize()

{@inheritdoc}

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>

setBackgroundColor()

Set the background color.

public setBackgroundColor(string $color) : $this
Parameters
$color : string

The color in hex format.

Return values
$this

setConditional()

Set conditional styles.

public setConditional(array<int, array<string, mixed>> $conditional) : $this
Parameters
$conditional : array<int, array<string, mixed>>

The conditional styles.

Return values
$this

setMaximumWidth()

Set the maximum column width.

public setMaximumWidth(int $width) : $this
Parameters
$width : int

The maximum width in points.

Return values
$this

setMinimumWidth()

Set the minimum column width.

public setMinimumWidth(int $width) : $this
Parameters
$width : int

The minimum width in points.

Return values
$this

setWidth()

Set the column width.

public setWidth(int $width) : $this
Parameters
$width : int

The width in points.

Return values
$this

        
On this page

Search results