\Iqrf\Repository\EntitiesTransceiverVoltage

Transceiver voltage entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$operating
$supply
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$operating

$operating : \Iqrf\Repository\Entities\TransceiverOperatingVoltage

Type

\Iqrf\Repository\Entities\TransceiverOperatingVoltage

$supply

$supply : \Iqrf\Repository\Entities\TransceiverSupplyVoltage

Type

\Iqrf\Repository\Entities\TransceiverSupplyVoltage

Methods

__construct()

__construct(\Iqrf\Repository\Entities\TransceiverOperatingVoltage  $operating, \Iqrf\Repository\Entities\TransceiverSupplyVoltage  $supply) : mixed

Constructor

Parameters

\Iqrf\Repository\Entities\TransceiverOperatingVoltage $operating

Operating voltage

\Iqrf\Repository\Entities\TransceiverSupplyVoltage $supply

Supply voltage

Returns

mixed —

fromApiResponse()

fromApiResponse(array{operatingVoltageMin: float, operatingVoltageMax: float, operatingVoltageNominal: float, supplyVoltageMin: float, supplyVoltageMax: float}  $response) : \Iqrf\Repository\Entities\TransceiverVoltage

Creates a new TransceiverVoltage entity from API response

Parameters

array{operatingVoltageMin: float, operatingVoltageMax: float, operatingVoltageNominal: float, supplyVoltageMin: float, supplyVoltageMax: float} $response

API response body

Returns

\Iqrf\Repository\Entities\TransceiverVoltage —

TransceiverVoltage entity

jsonSerialize()

jsonSerialize() : array{operating: array{min: float, max: float, nominal: float}, supply: array{min: float, max: float}}

Serializes the TransceiverVoltage entity into JSON

Returns

array{operating: array{min: float, max: float, nominal: float}, supply: array{min: float, max: float}} —

JSON serialized TransceiverVoltage entity