\Iqrf\Repository\Entities TransceiverVoltage

Transceiver voltage entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
operating
supply
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

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