Apple News API PHP Client

TextShadowOffset
in package
implements JsonSerializable

FinalYes

Offset positioning for text shadows.

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

Table of Contents

Interfaces

JsonSerializable

Properties

$x  : float
$y  : float

Methods

__construct()  : mixed
Create a new TextShadowOffset.
create()  : self
Create a new offset.
jsonSerialize()  : array{x: float, y: float}
{@inheritdoc}

Properties

Methods

__construct()

Create a new TextShadowOffset.

public __construct([float $x = 0 ][, float $y = 0 ]) : mixed
Parameters
$x : float = 0

The horizontal offset in points.

$y : float = 0

The vertical offset in points.

create()

Create a new offset.

public static create(float $x, float $y) : self
Parameters
$x : float

The horizontal offset.

$y : float

The vertical offset.

Return values
self —

A new instance.

jsonSerialize()

{@inheritdoc}

public jsonSerialize() : array{x: float, y: float}
Return values
array{x: float, y: float}

        
On this page

Search results