\Iqrf\Repository\ModelsPackageManager

Package manager

Summary

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

Constants

PATH

PATH = packages

Packages path

Methods

__construct()

__construct(\Iqrf\Repository\Models\ApiClient  apiClient) : 

Constructor

Parameters

\Iqrf\Repository\Models\ApiClient apiClient

JSON API client

Returns

list()

list(int|null  hwpid = null, int|null  hwpidVer = null, string|null  os = null, string|null  dpa = null) : \Iqrf\Repository\Models\Package||string|int

Lists packages

Parameters

int|null hwpid

HWPID

int|null hwpidVer

HWPID version

string|null os

IQRF OS build

string|null dpa

DPA version

Throws

\Iqrf\Repository\Models\CorruptedData
\Iqrf\Repository\Models\ServiceUnavailable

Returns

\Iqrf\Repository\Models\Package||string|int —

Array of packages

get()

get(  id) : \Iqrf\Repository\Models\PackageDetail

Returns the package by its ID

Parameters

id

Package ID

Throws

\Iqrf\Repository\Models\CorruptedData
\Iqrf\Repository\Models\PackageNotFound
\Iqrf\Repository\Models\ServiceUnavailable

Returns

\Iqrf\Repository\Models\PackageDetail —

Detailed package entity