\Iqrf\Repository\EntitiesOsDpaAttributes

IQRF OS or DPA attributes entity

Summary

Methods
Properties
Constants
__construct()
fromInt()
toQueryParameters()
jsonSerialize()
$beta
$obsolete
MASK_BETA
MASK_OBSOLETE
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
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

Type

?bool

$obsolete

$obsolete : ?bool

Type

?bool

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

toQueryParameters()

toQueryParameters() : array{beta?: "true"|"false", obsolete?: "true"|"false"}

Serializes the IQRF OS or DPA attributes entity into query parameters

Returns

array{beta?: "true"|"false", obsolete?: "true"|"false"} —

Query parameters

jsonSerialize()

jsonSerialize() : array{beta: bool|null, obsolete: bool|null}

Serializes the IQRF OS or DPA attributes entity into JSON

Returns

array{beta: bool|null, obsolete: bool|null} —

JSON serialized IQRF OS or DPA attributes entity