PHP Sigfox Client

Host extends BaseHost

Table of Contents

$actions  : array<string|int, mixed>|null
$contacts  : array<string|int, mixed>|null
$group  : MinGroup|null
$name  : string|null
The host's name
$resources  : array<string|int, mixed>|null
from()  : static
Initializing a model from an array
getActions()  : array<string|int, string>
Getter for actions
getContacts()  : array<string|int, Contact>
Getter for contacts
getGroup()  : MinGroup
Getter for group
getName()  : string
Getter for name
getResources()  : array<string|int, string>
Getter for resources
jsonSerialize()  : array<string|int, mixed>
setActions()  : static
Setter for actions
setContacts()  : static
Setter for contacts
setGroup()  : static
Setter for group
setName()  : static
Setter for name
setResources()  : static
Setter for resources

Properties

$actions

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

$contacts

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

$name

The host's name

protected string|null $name = null

$resources

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

getActions()

Getter for actions

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

getContacts()

Getter for contacts

public getContacts() : array<string|int, Contact>
Return values
array<string|int, Contact>

getName()

Getter for name

public getName() : string
Return values
string

The host's name

getResources()

Getter for resources

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

jsonSerialize()

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

setActions()

Setter for actions

public setActions(array<string|int, string> $actions) : static
Parameters
$actions : array<string|int, string>
Return values
static

To use in method chains

setContacts()

Setter for contacts

public setContacts(array<string|int, Contact$contacts) : static
Parameters
$contacts : array<string|int, Contact>
Return values
static

To use in method chains

setGroup()

Setter for group

public setGroup(MinGroup $group) : static
Parameters
$group : MinGroup
Return values
static

To use in method chains

setName()

Setter for name

public setName(string $name) : static
Parameters
$name : string

The host's name

Return values
static

To use in method chains

setResources()

Setter for resources

public setResources(array<string|int, string> $resources) : static
Parameters
$resources : array<string|int, string>
Return values
static

To use in method chains

Search results