\Iqrf\Repository\EntitiesOs

IQRF OS version entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getAttributes()
getBuild()
getDownloadPath()
getVersion()
jsonSerialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$attributes
$build
$downloadPath
$version
N/A

Properties

$attributes

$attributes : \Iqrf\Repository\Entities\OsDpaAttributtes

Type

OsDpaAttributtes — Attributes

$build

$build : string

Type

string — IQRF OS build

$downloadPath

$downloadPath : string

Type

string — Download path

$version

$version : string

Type

string — IQRF OS version

Methods

__construct()

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

Constructor

Parameters

string $build

IQRF OS build

string $version

IQRF OS version

\Iqrf\Repository\Entities\OsDpaAttributtes $attributes

Attributes

string $downloadPath

Download path

Returns

mixed —

fromArray()

fromArray(array<string,string|int>  $data) : \Iqrf\Repository\Entities\Os

Creates a new IQRF OS entity from an array

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Os —

Created IQRF OS entity

getAttributes()

getAttributes() : \Iqrf\Repository\Entities\OsDpaAttributtes

Returns IQRF OS version attributes

Returns

\Iqrf\Repository\Entities\OsDpaAttributtes —

IQRF OS version attributes

getBuild()

getBuild() : string

Returns the IQRF OS build

Returns

string —

IQRF OS build

getDownloadPath()

getDownloadPath() : string

Returns the download path

Returns

string —

Download path

getVersion()

getVersion() : string

Returns the IQRF OS version

Returns

string —

IQRF OS version

jsonSerialize()

jsonSerialize() : array<string,string|array<string,bool|null>>

Serialized the IQRF OS entity into JSON

Returns

array> —

JSON serialized IQRF OS entity