PHP Sigfox Client

DeviceConsumption extends Model

The consumption for this device

Table of Contents

$deviceConsumptions  : array<string|int, mixed>|null
Consumption of a device
$id  : int|null
Identifier of the device consumption
from()  : static
Initializing a model from an array
getDeviceConsumptions()  : array<string|int, DeviceConsumptionsItem>
Getter for deviceConsumptions
getId()  : int
Getter for id
jsonSerialize()  : array<string|int, mixed>
setDeviceConsumptions()  : static
Setter for deviceConsumptions
setId()  : static
Setter for id

Properties

$deviceConsumptions

Consumption of a device

protected array<string|int, mixed>|null $deviceConsumptions = 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() : int
Return values
int

Identifier of the device consumption

jsonSerialize()

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

setDeviceConsumptions()

Setter for deviceConsumptions

public setDeviceConsumptions(array<string|int, DeviceConsumptionsItem$deviceConsumptions) : static
Parameters
$deviceConsumptions : array<string|int, DeviceConsumptionsItem>

Consumption of a device

Return values
static

To use in method chains

setId()

Setter for id

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

Identifier of the device consumption

Return values
static

To use in method chains

Search results