PHP Sigfox Client

CommonDevice extends Model

Defines the device's common properties for reading or creation (not update)

Table of Contents

$id  : string|null
The device's identifier (hexadecimal format)
$name  : string|null
The device's name
from()  : static
Initializing a model from an array
getId()  : string
Getter for id
getName()  : string
Getter for name
jsonSerialize()  : array<string|int, mixed>
setId()  : static
Setter for id
setName()  : static
Setter for name

Properties

$id

The device's identifier (hexadecimal format)

protected string|null $id = null

$name

The device's name

protected string|null $name = 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 (hexadecimal format)

getName()

Getter for name

public getName() : string
Return values
string

The device's name

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 (hexadecimal format)

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

Search results