\Iqrf\Repository\Entities TransceiverDimensions

Transceiver dimensions entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
width
height
depth
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

$width

$width : float

Type

float

$height

$height : float

Type

float

$depth

$depth : float

Type

float

Methods

__construct()

__construct(float  $width, float  $height, float  $depth) : mixed

Constructor

Parameters

float $width

Width [mm]

float $height

Height [mm]

float $depth

Depth [mm]

Returns

mixed —

fromApiResponse()

fromApiResponse(array{dimensions: string}  $response) : \Iqrf\Repository\Entities\TransceiverDimensions

Creates a new TransceiverDimensions entity from API Response

Parameters

array{dimensions: string} $response

API response body

Throws

\Iqrf\Repository\Exceptions\TransceiverDimensionsInvalid

Thrown if API response body contains invalid transceiver type dimensions value

Returns

\Iqrf\Repository\Entities\TransceiverDimensions —

TransceiverDimensions entity

jsonSerialize()

jsonSerialize() : array{width: float, height: float, depth: float}

Serializes the TransceiverDimensions entity into JSON

Returns

array{width: float, height: float, depth: float} —

JSON serialized TransceiverDimensions entity