\Iqrf\Repository\EntitiesOs

IQRF OS version entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$build
$version
$attributes
$downloadPath
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$build

$build : string

Type

string

$version

$version : string

Type

string

$attributes

$attributes : \Iqrf\Repository\Entities\OsDpaAttributes

Type

\Iqrf\Repository\Entities\OsDpaAttributes

$downloadPath

$downloadPath : string

Type

string

Methods

__construct()

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

Constructor

Parameters

string $build

IQRF OS build

string $version

IQRF OS version

\Iqrf\Repository\Entities\OsDpaAttributes $attributes

Attributes

string $downloadPath

Download path

Returns

mixed —

fromApiResponse()

fromApiResponse(array{build: string, version: 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, attributes: int, downloadPath: string} $response

API response body

Returns

\Iqrf\Repository\Entities\Os —

Created IQRF OS entity

jsonSerialize()

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

Serialized the IQRF OS entity into JSON

Returns

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

JSON serialized IQRF OS entity