\Iqrf\Repository\EntitiesOsDpaAttributtes

Summary

Methods
Properties
Constants
__construct()
fromInt()
isBeta()
isObsolete()
toQueryParameters()
jsonSerialize()
No public properties found
MASK_BETA
MASK_OBSOLETE
No protected methods found
No protected properties found
N/A
No private methods found
$beta
$obsolete
N/A

Constants

MASK_BETA

MASK_BETA = 0b1

Mask for beta versions

MASK_OBSOLETE

MASK_OBSOLETE = 0b10

Mask for obsolete versions

Properties

$beta

$beta : bool|null

Type

bool|null — Beta version(s)

$obsolete

$obsolete : bool|null

Type

bool|null — Obsolete version(s)

Methods

__construct()

__construct(bool|null  $beta = null, bool|null  $obsolete = null) : mixed

Constructor

Parameters

bool|null $beta

Beta version(s)

bool|null $obsolete

Obsolete version(s)

Returns

mixed —

fromInt()

fromInt(int  $attributes, int  $mask = PHP_INT_MAX) : static

Creates IQRF OS or DPA attributes object from an integer

Parameters

int $attributes

Integer format

int $mask

Returns

static —

IQRF OS or DPA attributes

isBeta()

isBeta() : bool|null

Checks if the version is beta version

Returns

bool|null —

Is beta version?

isObsolete()

isObsolete() : bool|null

Checks if the version is obsolete version

Returns

bool|null —

Is obsolete version?

toQueryParameters()

toQueryParameters() : array<string,string>

Serializes the IQRF OS or DPA attributes entity into query parameters

Returns

array

Query parameters

jsonSerialize()

jsonSerialize() : array<string,bool|null>

Serializes the IQRF OS or DPA attributes entity into JSON

Returns

array

JSON serialized IQRF OS or DPA attributes entity