PHP Sigfox Client

Status extends Model

the informations about the devices already treated

Table of Contents

$errors  : array<string|int, mixed>|null
reasons of each errors
$nbErrors  : int|null
the number of devices unsuccessfully changed
$nbSuccess  : int|null
the number of devices successfully changed
$total  : int|null
the total number of devices given
from()  : static
Initializing a model from an array
getErrors()  : array<string|int, JobError>
Getter for errors
getNbErrors()  : int
Getter for nbErrors
getNbSuccess()  : int
Getter for nbSuccess
getTotal()  : int
Getter for total
jsonSerialize()  : array<string|int, mixed>
setErrors()  : static
Setter for errors
setNbErrors()  : static
Setter for nbErrors
setNbSuccess()  : static
Setter for nbSuccess
setTotal()  : static
Setter for total

Properties

$errors

reasons of each errors

protected array<string|int, mixed>|null $errors = null

$nbErrors

the number of devices unsuccessfully changed

protected int|null $nbErrors = null

$nbSuccess

the number of devices successfully changed

protected int|null $nbSuccess = null

$total

the total number of devices given

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

getErrors()

Getter for errors

public getErrors() : array<string|int, JobError>
Return values
array<string|int, JobError>

reasons of each errors

getNbErrors()

Getter for nbErrors

public getNbErrors() : int
Return values
int

the number of devices unsuccessfully changed

getNbSuccess()

Getter for nbSuccess

public getNbSuccess() : int
Return values
int

the number of devices successfully changed

getTotal()

Getter for total

public getTotal() : int
Return values
int

the total number of devices given

jsonSerialize()

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

setErrors()

Setter for errors

public setErrors(array<string|int, JobError$errors) : static
Parameters
$errors : array<string|int, JobError>

reasons of each errors

Return values
static

To use in method chains

setNbErrors()

Setter for nbErrors

public setNbErrors(int $nbErrors) : static
Parameters
$nbErrors : int

the number of devices unsuccessfully changed

Return values
static

To use in method chains

setNbSuccess()

Setter for nbSuccess

public setNbSuccess(int $nbSuccess) : static
Parameters
$nbSuccess : int

the number of devices successfully changed

Return values
static

To use in method chains

setTotal()

Setter for total

public setTotal(int $total) : static
Parameters
$total : int

the total number of devices given

Return values
static

To use in method chains

Search results