PHP Sigfox Client

MinPerm extends Model

Code and name of a permission

Table of Contents

$code  : int|null
The permission's code
$name  : string|null
The permission's name
from()  : static
Initializing a model from an array
getCode()  : int
Getter for code
getName()  : string
Getter for name
jsonSerialize()  : array<string|int, mixed>
setCode()  : static
Setter for code
setName()  : static
Setter for name

Properties

$code

The permission's code

protected int|null $code = null

$name

The permission's name

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

getCode()

Getter for code

public getCode() : int
Return values
int

The permission's code

getName()

Getter for name

public getName() : string
Return values
string

The permission's name

jsonSerialize()

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

setCode()

Setter for code

public setCode(int $code) : static
Parameters
$code : int

The permission's code

Return values
static

To use in method chains

setName()

Setter for name

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

The permission's name

Return values
static

To use in method chains

Search results