$id
$id : int
Package entity
__construct(int $id, int $hwpid, int $hwpidVer, string $handlerUrl, string $handlerHash, string $os, \Iqrf\Repository\Entities\DpaVersion $dpa, string $notes) : mixed
Constructor
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 |
fromApiResponse(array{packageID: int, hwpid: int, hwpidVer: int, handlerUrl: string, handlerHash: string, os: string, dpa: string, notes: string} $response) : \Iqrf\Repository\Entities\Package
Creates a new package entity from the API response
array{packageID: int, hwpid: int, hwpidVer: int, handlerUrl: string, handlerHash: string, os: string, dpa: string, notes: string} | $response | API response body |
Created package entity
jsonSerialize() : array{id: int, hwpid: int, hwpidVer: int, handlerUrl: string, handlerHash: string, os: string, dpa: string, notes: string}
Serializes the package entity into JSON
JSON serialized package entity