\Iqrf\Repository\Entities Dpa

DPA version entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
version
attributes
downloadPath
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$version

$version : \Iqrf\Repository\Entities\DpaVersion

Type

DpaVersion

$attributes

$attributes : \Iqrf\Repository\Entities\OsDpaAttributes

Type

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