PHP Sigfox Client

DataItem extends Model

Table of Contents

$id  : string|null
The device's identifier to unsubscribe (hexadecimal format)
$unsubscriptionTime  : int|null
the unsubscription time (in milliseconds since the Unix Epoch)
from()  : static
Initializing a model from an array
getId()  : string
Getter for id
getUnsubscriptionTime()  : int
Getter for unsubscriptionTime
jsonSerialize()  : array<string|int, mixed>
setId()  : static
Setter for id
setUnsubscriptionTime()  : static
Setter for unsubscriptionTime

Properties

$id

The device's identifier to unsubscribe (hexadecimal format)

protected string|null $id = null

$unsubscriptionTime

the unsubscription time (in milliseconds since the Unix Epoch)

protected int|null $unsubscriptionTime = 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

getId()

Getter for id

public getId() : string
Return values
string

The device's identifier to unsubscribe (hexadecimal format)

getUnsubscriptionTime()

Getter for unsubscriptionTime

public getUnsubscriptionTime() : int
Return values
int

the unsubscription time (in milliseconds since the Unix Epoch)

jsonSerialize()

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

setId()

Setter for id

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

The device's identifier to unsubscribe (hexadecimal format)

Return values
static

To use in method chains

setUnsubscriptionTime()

Setter for unsubscriptionTime

public setUnsubscriptionTime(int $unsubscriptionTime) : static
Parameters
$unsubscriptionTime : int

the unsubscription time (in milliseconds since the Unix Epoch)

Return values
static

To use in method chains

Search results