PHP Sigfox Client

DataItem extends Model

Describes the individual fields of devices created in an ansynchronous bulk request

Table of Contents

$activable  : bool|null
Value describing if the devices are activable and can recover a token
$automaticRenewal  : bool|null
Value describing if the device is permitted to automatically renew its token
$id  : string|null
The device's identifier (hexadecimal format)
$lat  : float|null
The device's provided latitude
$lng  : float|null
The device's provided longitude
$name  : string|null
The device's name
$pac  : string|null
The device's PAC (Porting Access Code)
from()  : static
Initializing a model from an array
getActivable()  : bool
Getter for activable
getAutomaticRenewal()  : bool
Getter for automaticRenewal
getId()  : string
Getter for id
getLat()  : float
Getter for lat
getLng()  : float
Getter for lng
getName()  : string
Getter for name
getPac()  : string
Getter for pac
jsonSerialize()  : array<string|int, mixed>
setActivable()  : static
Setter for activable
setAutomaticRenewal()  : static
Setter for automaticRenewal
setId()  : static
Setter for id
setLat()  : static
Setter for lat
setLng()  : static
Setter for lng
setName()  : static
Setter for name
setPac()  : static
Setter for pac

Properties

$activable

Value describing if the devices are activable and can recover a token

protected bool|null $activable = null

$automaticRenewal

Value describing if the device is permitted to automatically renew its token

protected bool|null $automaticRenewal = null

$id

The device's identifier (hexadecimal format)

protected string|null $id = null

$lat

The device's provided latitude

protected float|null $lat = null

$lng

The device's provided longitude

protected float|null $lng = null

$name

The device's name

protected string|null $name = null

$pac

The device's PAC (Porting Access Code)

protected string|null $pac = 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

getActivable()

Getter for activable

public getActivable() : bool
Return values
bool

Value describing if the devices are activable and can recover a token

getAutomaticRenewal()

Getter for automaticRenewal

public getAutomaticRenewal() : bool
Return values
bool

Value describing if the device is permitted to automatically renew its token

getId()

Getter for id

public getId() : string
Return values
string

The device's identifier (hexadecimal format)

getLat()

Getter for lat

public getLat() : float
Return values
float

The device's provided latitude

getLng()

Getter for lng

public getLng() : float
Return values
float

The device's provided longitude

getName()

Getter for name

public getName() : string
Return values
string

The device's name

getPac()

Getter for pac

public getPac() : string
Return values
string

The device's PAC (Porting Access Code)

jsonSerialize()

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

setActivable()

Setter for activable

public setActivable(bool $activable) : static
Parameters
$activable : bool

Value describing if the devices are activable and can recover a token

Return values
static

To use in method chains

setAutomaticRenewal()

Setter for automaticRenewal

public setAutomaticRenewal(bool $automaticRenewal) : static
Parameters
$automaticRenewal : bool

Value describing if the device is permitted to automatically renew its token

Return values
static

To use in method chains

setId()

Setter for id

public setId(string $id) : static
Parameters
$id : string

The device's identifier (hexadecimal format)

Return values
static

To use in method chains

setLat()

Setter for lat

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

The device's provided latitude

Return values
static

To use in method chains

setLng()

Setter for lng

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

The device's provided longitude

Return values
static

To use in method chains

setName()

Setter for name

public setName(string $name) : static
Parameters
$name : string

The device's name

Return values
static

To use in method chains

setPac()

Setter for pac

public setPac(string $pac) : static
Parameters
$pac : string

The device's PAC (Porting Access Code)

Return values
static

To use in method chains

Search results