\Iqrf\Repository\Entities\Metadata External

External power metadata entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
type
nominalVoltage
minVoltage
maxVoltage
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

$type

$type : ?string

Type

string|null

$nominalVoltage

$nominalVoltage : ?float

Type

float|null

$minVoltage

$minVoltage : ?float

Type

float|null

$maxVoltage

$maxVoltage : ?float

Type

float|null

Methods

__construct()

__construct(string|null  $type = null, float|null  $nominalVoltage = null, float|null  $minVoltage = null, float|null  $maxVoltage = null) : mixed

Constructs External metadata object.

Parameters

string|null $type

External power supply type.

float|null $nominalVoltage

Reference voltage level.

float|null $minVoltage

Minimum voltage delivery.

float|null $maxVoltage

Maximum voltage delivery.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{type?: string, nominalVoltage?: float, minVoltage?: float, maxVoltage?: float}  $response) : \Iqrf\Repository\Entities\Metadata\External

Parses the provided response data into an External object

Parameters

array{type?: string, nominalVoltage?: float, minVoltage?: float, maxVoltage?: float} $response

API response body

Returns

\Iqrf\Repository\Entities\Metadata\External —

The parsed External object

jsonSerialize()

jsonSerialize() : array{type?: string, nominalVoltage?: float, minVoltage?: float, maxVoltage?: float}

Serializes the External entity into JSON

Returns

array{type?: string, nominalVoltage?: float, minVoltage?: float, maxVoltage?: float} —

JSON-serialized External data