\Iqrf\Repository\ModelsOsAndDpaManager

IQRF OS and DPA versions manager

Summary

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

Constants

PATH

PATH = 'osdpa'

IQRF OS and DPA 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\OsDpa[]

Lists all IQRF OS and DPA versions

Parameters

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

IQRF OS and DPA version attributes

Throws

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

Returns

\Iqrf\Repository\Entities\OsDpa[] —

IQRF OS and DPA versions

get()

get(string|null  $os = null, string|null  $dpa = null, \Iqrf\Repository\Entities\OsDpaAttributtes|null  $attributes = null) : \Iqrf\Repository\Entities\OsDpa[]

Returns filtered IQRF OS and DPA versions

Parameters

string|null $os

IQRF OS build

string|null $dpa

DPA versions

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

IQRF OS and DPA version attributes

Throws

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

Returns

\Iqrf\Repository\Entities\OsDpa[] —

IQRF OS and DPA versions

getQueryAttributes()

getQueryAttributes(\Iqrf\Repository\Entities\OsDpaAttributtes  $attributes) : array<string,string>

Returns IQRF OS and DPA attributes as query parameters

Parameters

\Iqrf\Repository\Entities\OsDpaAttributtes $attributes

IQRF OS and DPA attributes

Returns

array

Query parameters

parseResponse()

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

Parses the JSON API response

Parameters

array[] $response

JSON API response

Returns

\Iqrf\Repository\Entities\OsDpa[] —

IQRF OS and DPA versions