\Iqrf\Repository\ModelsStandardManager

IQRF Standards manager

Summary

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

Constants

PATH

PATH = 'standards'

IQRF Standards path

Properties

$apiClient

$apiClient : \Iqrf\Repository\Utils\ApiClient

Type

\Iqrf\Repository\Utils\ApiClient

Methods

list()

list() : \Iqrf\Repository\Entities\Standard[]

Lists all IQRF Standards

Throws

\Iqrf\Repository\Exceptions\CorruptedData

Corrupted data in the API response

\Iqrf\Repository\Exceptions\ServiceUnavailable

IQRF Repository API is unavailable

Returns

\Iqrf\Repository\Entities\Standard[] —

All IQRF Standards

getVersions()

getVersions(int  $id) : \Iqrf\Repository\Entities\StandardVersions

Returns IQRF Standard versions

Parameters

int $id

IQRF Standard ID

Throws

\Iqrf\Repository\Exceptions\CorruptedData

Corrupted data in the API response

\Iqrf\Repository\Exceptions\ServiceUnavailable

IQRF Repository API is unavailable

\Iqrf\Repository\Exceptions\StandardNotFound

IQRF Standard not found

Returns

\Iqrf\Repository\Entities\StandardVersions —

IQRF Standard versions

get()

get(int  $id, float  $version) : \Iqrf\Repository\Entities\StandardDetail

Returns IQRF Standard

Parameters

int $id

IQRF Standard ID

float $version

IQRF Standard version

Throws

\Iqrf\Repository\Exceptions\CorruptedData

Corrupted data in the API response

\Iqrf\Repository\Exceptions\ServiceUnavailable

IQRF Repository API is unavailable

\Iqrf\Repository\Exceptions\StandardNotFound

IQRF Standard not found

Returns

\Iqrf\Repository\Entities\StandardDetail —

IQRF Standard

__construct()

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

Constructor

Parameters

\Iqrf\Repository\Utils\ApiClient $apiClient

JSON API client

Returns

mixed —