\Iqrf\Repository\Entities OsDpaAttributes

IQRF OS or DPA attributes entity

Summary

Methods
Properties
Constants
__construct
fromInt
toQueryParameters
jsonSerialize
beta
obsolete
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
MASK_BETA
MASK_OBSOLETE

Constant

MASK_BETA

MASK_BETA = 0b1

Mask for beta versions

MASK_OBSOLETE

MASK_OBSOLETE = 0b10

Mask for obsolete versions

Properties

$beta

$beta : ?bool

Type

bool|null

$obsolete

$obsolete : ?bool

Type

bool|null

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