\Iqrf\Repository\EntitiesPackageDetail

Detailed package entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
$id
$hwpid
$hwpidVer
$handlerUrl
$handlerHash
$os
$dpa
$notes
$driver
$standards
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : int

Type

int

$hwpid

$hwpid : int

Type

int

$hwpidVer

$hwpidVer : int

Type

int

$handlerUrl

$handlerUrl : string

Type

string

$handlerHash

$handlerHash : string

Type

string

$os

$os : string

Type

string

$dpa

$dpa : \Iqrf\Repository\Entities\DpaVersion

Type

\Iqrf\Repository\Entities\DpaVersion

$notes

$notes : string

Type

string

$driver

$driver : string

Type

string

$standards

$standards : array

Type

array

Methods

__construct()

__construct(int  $id, int  $hwpid, int  $hwpidVer, string  $handlerUrl, string  $handlerHash, string  $os, \Iqrf\Repository\Entities\DpaVersion  $dpa, string  $notes, string  $driver, \Iqrf\Repository\Entities\StandardDetail[]  $standards) : mixed

Constructor

Parameters

int $id

Package ID

int $hwpid

HWPID

int $hwpidVer

HWPID version

string $handlerUrl

Custom handler URL

string $handlerHash

Custom handler hash

string $os

IQRF OS build

\Iqrf\Repository\Entities\DpaVersion $dpa

DPA version

string $notes

Package notes

string $driver

Driver code

\Iqrf\Repository\Entities\StandardDetail[] $standards

Array of supported standards

Returns

mixed —

fromApiResponse()

fromApiResponse(array{packageID: int, hwpid: int, hwpidVer: int, handlerUrl: string, handlerHash: string, os: string, dpa: string, notes: string, driver: string, standards: array{standardID: int, name: string, version: float, versionFlags: int, driver: string, notes: string}[]}  $response) : \Iqrf\Repository\Entities\PackageDetail

Creates a new detailed package entity from the API response

Parameters

array{packageID: int, hwpid: int, hwpidVer: int, handlerUrl: string, handlerHash: string, os: string, dpa: string, notes: string, driver: string, standards: array{standardID: int, name: string, version: float, versionFlags: int, driver: string, notes: string}[]} $response

API response body

Returns

\Iqrf\Repository\Entities\PackageDetail —

Created detailed package entity