\Iqrf\Repository\Entities TransceiverSeriesType

Transceiver series type entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
name
temperatureSensor
antenna
dimensions
imageUrl
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

$name

$name : string

Type

string

$temperatureSensor

$temperatureSensor : bool

Type

bool

$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