PHP Sigfox Client

DeviceLocation extends Model

Contains the position of the device

Table of Contents

$lat  : float|null
The device's estimated latitude
$lng  : float|null
The device's estimated longitude
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

The device's estimated latitude

protected float|null $lat = null

$lng

The device's estimated longitude

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

The device's estimated latitude

getLng()

Getter for lng

public getLng() : float
Return values
float

The device's estimated longitude

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

The device's estimated latitude

Return values
static

To use in method chains

setLng()

Setter for lng

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

The device's estimated longitude

Return values
static

To use in method chains

Search results