PHP Sigfox Client

BaseResponse extends Model

Generic information about user operation

Table of Contents

$message  : string|null
Additional information about the operation
$userRoles  : array<string|int, mixed>|null
from()  : static
Initializing a model from an array
getMessage()  : string
Getter for message
getUserRoles()  : array<string|int, UserRole>
Getter for userRoles
jsonSerialize()  : array<string|int, mixed>
setMessage()  : static
Setter for message
setUserRoles()  : static
Setter for userRoles

Properties

$message

Additional information about the operation

protected string|null $message = null

$userRoles

protected array<string|int, mixed>|null $userRoles = 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

getMessage()

Getter for message

public getMessage() : string
Return values
string

Additional information about the operation

jsonSerialize()

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

setMessage()

Setter for message

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

Additional information about the operation

Return values
static

To use in method chains

setUserRoles()

Setter for userRoles

public setUserRoles(array<string|int, UserRole$userRoles) : static
Parameters
$userRoles : array<string|int, UserRole>
Return values
static

To use in method chains

Search results