\Iqrf\Repository\EntitiesDpa

DPA version entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$version
$attributes
$downloadPath
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$version

$version : \Iqrf\Repository\Entities\DpaVersion

Type

\Iqrf\Repository\Entities\DpaVersion

$attributes

$attributes : \Iqrf\Repository\Entities\OsDpaAttributes

Type

\Iqrf\Repository\Entities\OsDpaAttributes

$downloadPath

$downloadPath : string

Type

string

Methods

__construct()

__construct(\Iqrf\Repository\Entities\DpaVersion  $version, \Iqrf\Repository\Entities\OsDpaAttributes  $attributes, string  $downloadPath) : mixed

Constructor

Parameters

\Iqrf\Repository\Entities\DpaVersion $version

DPA version

\Iqrf\Repository\Entities\OsDpaAttributes $attributes

Attributes

string $downloadPath

Download path

Returns

mixed —

fromApiResponse()

fromApiResponse(array{version: string, attributes: int, downloadPath: string}  $response) : \Iqrf\Repository\Entities\Dpa

Creates a new DPA entity from the API response

Parameters

array{version: string, attributes: int, downloadPath: string} $response

API response body

Returns

\Iqrf\Repository\Entities\Dpa —

Created DPA entity

jsonSerialize()

jsonSerialize() : array{version: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}

Serialized the DPA entity into JSON

Returns

array{version: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string} —

JSON serialized DPA entity