PHP Sigfox Client

LocationsItem extends Model

Table of Contents

$lat  : float|null
A latitude in degrees. Must be between -90° and 90°.
$lng  : float|null
A longitude in degrees. Must be between -180° and 180°.
from()  : static
Initializing a model from an array
getLat()  : float
Getter for lat
getLng()  : float
Getter for lng
jsonSerialize()  : array<string|int, mixed>
setLat()  : static
Setter for lat
setLng()  : static
Setter for lng

Properties

$lat

A latitude in degrees. Must be between -90° and 90°.

protected float|null $lat = null

$lng

A longitude in degrees. Must be between -180° and 180°.

protected float|null $lng = null

Methods

from()

Initializing a model from an array

public static from(array<string|int, mixed> $params) : static
Parameters
$params : array<string|int, mixed>

Pass this parameter if you want to initial property value from an array. See API reference for all property names and types

Tags
throws
DeserializeException

If provided an invalid type to a property

Return values
static

getLat()

Getter for lat

public getLat() : float
Return values
float

A latitude in degrees. Must be between -90° and 90°.

getLng()

Getter for lng

public getLng() : float
Return values
float

A longitude in degrees. Must be between -180° and 180°.

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
inheritdoc
Return values
array<string|int, mixed>

setLat()

Setter for lat

public setLat(float $lat) : static
Parameters
$lat : float

A latitude in degrees. Must be between -90° and 90°.

Return values
static

To use in method chains

setLng()

Setter for lng

public setLng(float $lng) : static
Parameters
$lng : float

A longitude in degrees. Must be between -180° and 180°.

Return values
static

To use in method chains

Search results