\Iqrf\Repository\EntitiesDpa

DPA version entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getAttributes()
getDownloadPath()
getVersion()
jsonSerialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$attributes
$downloadPath
$version
N/A

Properties

$attributes

$attributes : \Iqrf\Repository\Entities\OsDpaAttributtes

Type

OsDpaAttributtes — Attributes

$downloadPath

$downloadPath : string

Type

string — Download path

$version

$version : string

Type

string — DPA version

Methods

__construct()

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

Constructor

Parameters

string $version

DPA version

\Iqrf\Repository\Entities\OsDpaAttributtes $attributes

Attributes

string $downloadPath

Download path

Returns

mixed —

fromArray()

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

Creates a new DPA entity from an array

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Dpa —

Created DPA entity

getAttributes()

getAttributes() : \Iqrf\Repository\Entities\OsDpaAttributtes

Returns DPA version attributes

Returns

\Iqrf\Repository\Entities\OsDpaAttributtes —

DPA version attributes

getDownloadPath()

getDownloadPath() : string

Returns the download path

Returns

string —

Download path

getVersion()

getVersion(bool  $pretty = false) : string

Returns the DPA version

Parameters

bool $pretty

Pretty formatting

Returns

string —

DPA version

jsonSerialize()

jsonSerialize() : array<string,string|array<string,bool|null>>

Serialized the DPA entity into JSON

Returns

array> —

JSON serialized DPA entity