PHP Sigfox Client

ErrorsItem extends Model

Table of Contents

$field  : string|null
Name of the field or parameter where the specific error occurred.
$message  : string|null
Readable specific error for the previously defined field.
$type  : string|null
Describe where the problem occurred. Can be from body, query or path.
from()  : static
Initializing a model from an array
getField()  : string
Getter for field
getMessage()  : string
Getter for message
getType()  : string
Getter for type
jsonSerialize()  : array<string|int, mixed>
setField()  : static
Setter for field
setMessage()  : static
Setter for message
setType()  : static
Setter for type

Properties

$field

Name of the field or parameter where the specific error occurred.

protected string|null $field = null

$message

Readable specific error for the previously defined field.

protected string|null $message = null

$type

Describe where the problem occurred. Can be from body, query or path.

protected string|null $type = 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

getField()

Getter for field

public getField() : string
Return values
string

Name of the field or parameter where the specific error occurred.

getMessage()

Getter for message

public getMessage() : string
Return values
string

Readable specific error for the previously defined field.

getType()

Getter for type

public getType() : string
Return values
string

Describe where the problem occurred. Can be from body, query or path.

jsonSerialize()

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

setField()

Setter for field

public setField(string $field) : static
Parameters
$field : string

Name of the field or parameter where the specific error occurred.

Return values
static

To use in method chains

setMessage()

Setter for message

public setMessage(string $message) : static
Parameters
$message : string

Readable specific error for the previously defined field.

Return values
static

To use in method chains

setType()

Setter for type

public setType(string $type) : static
Parameters
$type : string

Describe where the problem occurred. Can be from body, query or path.

Return values
static

To use in method chains

Search results