\Iqrf\Repository\EntitiesTransceiverSeriesType

Transceiver series type entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$name
$temperatureSensor
$antenna
$dimensions
$imageUrl
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Type

string

$temperatureSensor

$temperatureSensor : bool

Type

bool

$antenna

$antenna : \Iqrf\Repository\Enums\TransceiverAntenna

Type

\Iqrf\Repository\Enums\TransceiverAntenna

$dimensions

$dimensions : \Iqrf\Repository\Entities\TransceiverDimensions

Type

\Iqrf\Repository\Entities\TransceiverDimensions

$imageUrl

$imageUrl : string|null

Type

string|null

Methods

__construct()

__construct(string  $name, bool  $temperatureSensor, \Iqrf\Repository\Enums\TransceiverAntenna  $antenna, \Iqrf\Repository\Entities\TransceiverDimensions  $dimensions, string|null  $imageUrl = null) : mixed

Constructor

Parameters

string $name

Type name

bool $temperatureSensor

Temperature sensor present

\Iqrf\Repository\Enums\TransceiverAntenna $antenna

Antenna

\Iqrf\Repository\Entities\TransceiverDimensions $dimensions

Dimensions

string|null $imageUrl

Image URL

Returns

mixed —

fromApiResponse()

fromApiResponse(array{typeName: string, temperatureSensor: bool, antenna: string, dimensions: string, image?: string}  $response) : \Iqrf\Repository\Entities\TransceiverSeriesType

Creates a new TransceiverSeriesType entity from API Response

Parameters

array{typeName: string, temperatureSensor: bool, antenna: string, dimensions: string, image?: string} $response

API response body

Returns

\Iqrf\Repository\Entities\TransceiverSeriesType —

TransceiverSeriesType entity

jsonSerialize()

jsonSerialize() : array{name: string, temperatureSensor: bool, antenna: string, dimensions: array{width: float, height: float, depth: float}, imageUrl: string|null}

Serializes the TransceiverSeriesType entity into JSON

Returns

array{name: string, temperatureSensor: bool, antenna: string, dimensions: array{width: float, height: float, depth: float}, imageUrl: string|null} —

JSON serialized TransceiverSeriesType entity