PHP Sigfox Client

DataItem extends Model

Table of Contents

$activable  : bool|null
True if the device is activable and can take a token. Not used if the device has already a token and if the transferred is intra-order.
$id  : string|null
The device's identifier (hexadecimal format)
$keepHistory  : bool|null
Whether to keep the device history or not
from()  : static
Initializing a model from an array
getActivable()  : bool
Getter for activable
getId()  : string
Getter for id
getKeepHistory()  : bool
Getter for keepHistory
jsonSerialize()  : array<string|int, mixed>
setActivable()  : static
Setter for activable
setId()  : static
Setter for id
setKeepHistory()  : static
Setter for keepHistory

Properties

$activable

True if the device is activable and can take a token. Not used if the device has already a token and if the transferred is intra-order.

protected bool|null $activable = null

$id

The device's identifier (hexadecimal format)

protected string|null $id = null

$keepHistory

Whether to keep the device history or not

protected bool|null $keepHistory = 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

True if the device is activable and can take a token. Not used if the device has already a token and if the transferred is intra-order.

getId()

Getter for id

public getId() : string
Return values
string

The device's identifier (hexadecimal format)

getKeepHistory()

Getter for keepHistory

public getKeepHistory() : bool
Return values
bool

Whether to keep the device history or not

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

True if the device is activable and can take a token. Not used if the device has already a token and if the transferred is intra-order.

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

setKeepHistory()

Setter for keepHistory

public setKeepHistory(bool $keepHistory) : static
Parameters
$keepHistory : bool

Whether to keep the device history or not

Return values
static

To use in method chains

Search results