\Iqrf\Repository\Entities Os

IQRF OS version entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
build
version
trFamily
attributes
downloadPath
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

$build

$build : string

Type

string

$version

$version : string

Type

string

$trFamily

$trFamily : \Iqrf\Repository\Enums\TransceiverFamily

Type

TransceiverFamily

$attributes

$attributes : \Iqrf\Repository\Entities\OsDpaAttributes

Type

OsDpaAttributes

$downloadPath

$downloadPath : string

Type

string

Methods

__construct()

__construct(string  $build, string  $version, \Iqrf\Repository\Enums\TransceiverFamily  $trFamily, \Iqrf\Repository\Entities\OsDpaAttributes  $attributes, string  $downloadPath) : mixed

Constructor

Parameters

string $build

IQRF OS build

string $version

IQRF OS version

\Iqrf\Repository\Enums\TransceiverFamily $trFamily

Transceiver family

\Iqrf\Repository\Entities\OsDpaAttributes $attributes

Attributes

string $downloadPath

Download path

Returns

mixed —

fromApiResponse()

fromApiResponse(array{build: string, version: string, trFamily: string, attributes: int, downloadPath: string}  $response) : \Iqrf\Repository\Entities\Os

Creates a new IQRF OS entity from the API response

Parameters

array{build: string, version: string, trFamily: string, attributes: int, downloadPath: string} $response

API response body

Returns

\Iqrf\Repository\Entities\Os —

Created IQRF OS entity

jsonSerialize()

jsonSerialize() : array{build: string, version: string, trFamily: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}

Serialized the IQRF OS entity into JSON

Returns

array{build: string, version: string, trFamily: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string} —

JSON serialized IQRF OS entity