\Iqrf\Repository\ModelsOsManager

IQRF OS versions manager

Summary

Methods
Properties
Constants
__construct()
list()
get()
No public properties found
PATH
No protected methods found
$apiClient
N/A
parseResponse()
No private properties found
N/A

Constants

PATH

PATH = 'os'

IQRF OS versions path

Properties

$apiClient

$apiClient : \Iqrf\Repository\Utils\ApiClient

Type

ApiClient — JSON API client

Methods

__construct()

__construct(\Iqrf\Repository\Utils\ApiClient  $apiClient) : mixed

Constructor

Parameters

\Iqrf\Repository\Utils\ApiClient $apiClient

JSON API client

Returns

mixed —

list()

list(\Iqrf\Repository\Entities\OsDpaAttributtes|null  $attributes = null) : \Iqrf\Repository\Entities\Os[]

Lists all IQRF OS versions

Parameters

\Iqrf\Repository\Entities\OsDpaAttributtes|null $attributes

IQRF OS version attributes

Throws

\Iqrf\Repository\Exceptions\CorruptedData
\Iqrf\Repository\Exceptions\OsNotFound
\Iqrf\Repository\Exceptions\ServiceUnavailable

Returns

\Iqrf\Repository\Entities\Os[] —

IQRF OS versions

get()

get(string  $build) : \Iqrf\Repository\Entities\Os

Returns IQRF OS version

Parameters

string $build

IQRF OS build

Throws

\Iqrf\Repository\Exceptions\CorruptedData
\Iqrf\Repository\Exceptions\OsNotFound
\Iqrf\Repository\Exceptions\ServiceUnavailable

Returns

\Iqrf\Repository\Entities\Os —

IQRF OS version

parseResponse()

parseResponse(array<string,string|int>[]  $response) : \Iqrf\Repository\Entities\Os[]

Parses the JSON API response

Parameters

array[] $response

JSON API response

Returns

\Iqrf\Repository\Entities\Os[] —

IQRF OS versions