$name
$name : string
Transceiver series type entity
__construct(string $name, bool $temperatureSensor, \Iqrf\Repository\Enums\TransceiverAntenna $antenna, \Iqrf\Repository\Entities\TransceiverDimensions $dimensions, string|null $imageUrl = null) : mixed
Constructor
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 |
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
array{typeName: string, temperatureSensor: bool, antenna: string, dimensions: string, image?: string} | $response | API response body |
TransceiverSeriesType entity
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
JSON serialized TransceiverSeriesType entity