\Iqrf\Repository\EntitiesPackage

Package entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getId()
getHwpid()
getHwpidVer()
getHandlerUrl()
getHandlerHash()
getOs()
getDpa()
getNotes()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$hwpid
$hwpidVer
$handlerUrl
$handlerHash
$os
$dpa
$notes
N/A

Properties

$id

$id : int

Type

int — Package ID

$hwpid

$hwpid : int

Type

int — Package HWPID

$hwpidVer

$hwpidVer : int

Type

int — Package HWPID version

$handlerUrl

$handlerUrl : string

Type

string — Custom handler URL

$handlerHash

$handlerHash : string

Type

string — Custom handler hash

$os

$os : string

Type

string — IQRF OS build

$dpa

$dpa : string

Type

string — DPA version

$notes

$notes : string

Type

string — Package notes

Methods

__construct()

__construct(int  $id, int  $hwpid, int  $hwpidVer, string  $handlerUrl, string  $handlerHash, string  $os, string  $dpa, string  $notes) : 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

string $dpa

DPA version

string $notes

Package notes

Returns

mixed —

fromArray()

fromArray(array<string,int|string>  $data) : \Iqrf\Repository\Entities\Package

Creates a new package entity from an array

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Package —

Created package entity

getId()

getId() : int

Returns the package ID

Returns

int —

Package ID

getHwpid()

getHwpid() : int

Returns the package HWPID

Returns

int —

package HWPID

getHwpidVer()

getHwpidVer() : int

Returns the package HWPID version

Returns

int —

Package HWPID version

getHandlerUrl()

getHandlerUrl() : string

Returns the package custom handler URL

Returns

string —

Package custom handler URL

getHandlerHash()

getHandlerHash() : string

Returns the package custom handler hash

Returns

string —

Package custom handler hash

getOs()

getOs() : string

Returns IQRF OS build

Returns

string —

IQRF OS build

getDpa()

getDpa() : string

Returns DPA version

Returns

string —

DPA version

getNotes()

getNotes() : string

Returns the package notes

Returns

string —

Package notes