Apple News API PHP Client

TableBorder
in package
implements JsonSerializable

FinalYes

Border configuration for tables.

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

Table of Contents

Interfaces

JsonSerializable

Properties

$all  : TableStrokeStyle|null
The border for all sides.
$bottom  : TableStrokeStyle|null
The bottom border.
$left  : TableStrokeStyle|null
The left border.
$right  : TableStrokeStyle|null
The right border.
$top  : TableStrokeStyle|null
The top border.

Methods

jsonSerialize()  : array<string, mixed>
{@inheritdoc}
setAll()  : $this
Set all borders.
setBottom()  : $this
Set the bottom border.
setLeft()  : $this
Set the left border.
setRight()  : $this
Set the right border.
setTop()  : $this
Set the top border.
uniform()  : self
Create a uniform border.

Properties

Methods

jsonSerialize()

{@inheritdoc}

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

uniform()

Create a uniform border.

public static uniform(string $color[, int $width = 1 ]) : self
Parameters
$color : string

The border color.

$width : int = 1

The border width.

Return values
self

A new instance.


        
On this page

Search results