$version
$version : \Iqrf\Repository\Entities\DpaVersion
DPA version entity
__construct(\Iqrf\Repository\Entities\DpaVersion $version, \Iqrf\Repository\Entities\OsDpaAttributes $attributes, string $downloadPath) : mixed
Constructor
\Iqrf\Repository\Entities\DpaVersion | $version | DPA version |
\Iqrf\Repository\Entities\OsDpaAttributes | $attributes | Attributes |
string | $downloadPath | Download path |
fromApiResponse(array{version: string, attributes: int, downloadPath: string} $response) : \Iqrf\Repository\Entities\Dpa
Creates a new DPA entity from the API response
array{version: string, attributes: int, downloadPath: string} | $response | API response body |
Created DPA entity
jsonSerialize() : array{version: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}
Serialized the DPA entity into JSON
JSON serialized DPA entity