\Iqrf\Repository\Entities MetadataProfileV0

Metadata profile version 0 entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
getSchema
getHwpidVersions
jsonSerialize
hwpidVersions
routing
beaming
repeater
frcAggregation
iqarosCompatible
iqrfSensor
iqrfBinaryOutput
powerSupply
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$routing

$routing : bool

Type

bool

$beaming

$beaming : bool

Type

bool

$repeater

$repeater : bool

Type

bool

$frcAggregation

$frcAggregation : bool

Type

bool

$iqarosCompatible

$iqarosCompatible : bool

Type

bool

$iqrfSensor

$iqrfSensor : array

Type

array<string|int, mixed>

$iqrfBinaryOutput

$iqrfBinaryOutput : int

Type

int

Methods

__construct()

__construct(\Iqrf\Repository\Entities\MetadataProfileHwpidVersions  $hwpidVersions, bool  $routing, bool  $beaming, bool  $repeater, bool  $frcAggregation, bool  $iqarosCompatible, int[]  $iqrfSensor, int  $iqrfBinaryOutput, \Iqrf\Repository\Entities\MetadataProfilePowerSupply  $powerSupply) : mixed

Constructor

Parameters

\Iqrf\Repository\Entities\MetadataProfileHwpidVersions $hwpidVersions

HWPID version

bool $routing

Routing device

bool $beaming

Beaming device

bool $repeater

Repeater

bool $frcAggregation

FRC aggregating function

bool $iqarosCompatible

Compatible with IQAROS system

int[] $iqrfSensor

List of implemented sensor types

int $iqrfBinaryOutput

Binary output count

\Iqrf\Repository\Entities\MetadataProfilePowerSupply $powerSupply

Power supply

Returns

mixed —

fromApiResponse()

fromApiResponse(array  $response) : \Iqrf\Repository\Entities\MetadataProfileV0

Create a new entity from API response

Parameters

array $response

API response data

Throws

\Iqrf\Repository\Exceptions\CorruptedData

Thrown when API response data are corrupted

Returns

\Iqrf\Repository\Entities\MetadataProfileV0 —

New entity

getSchema()

getSchema() : \Nette\Schema\Schema

Get entity validation schema

Returns

\Nette\Schema\Schema —

Validation schema

getHwpidVersions()

getHwpidVersions() : \Iqrf\Repository\Entities\MetadataProfileHwpidVersions

Get HWPID versions

Returns

\Iqrf\Repository\Entities\MetadataProfileHwpidVersions —

HWPID versions

jsonSerialize()

jsonSerialize() : array{hwpidVersions: array<string,mixed>, routing: bool, beaming: bool, repeater: bool, frcAggregation: bool, iqarosCompatible: bool, iqrfSensor: int[], iqrfBinaryOutput: int, powerSupply: array<string,mixed>}

Serializes the entity into JSON

Returns

array{hwpidVersions: array, routing: bool, beaming: bool, repeater: bool, frcAggregation: bool, iqarosCompatible: bool, iqrfSensor: int[], iqrfBinaryOutput: int, powerSupply: array} —

JSON-serialized entity