\Iqrf\Repository\Entities OsDpa

IQRF OS and DPA entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
os
dpa
notes
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

$os

$os : \Iqrf\Repository\Entities\Os

Type

Os

$dpa

$dpa : \Iqrf\Repository\Entities\Dpa

Type

Dpa

$notes

$notes : string

Type

string

Methods

__construct()

__construct(\Iqrf\Repository\Entities\Os  $os, \Iqrf\Repository\Entities\Dpa  $dpa, string  $notes) : mixed

Constructor

Parameters

\Iqrf\Repository\Entities\Os $os

IQRF OS

\Iqrf\Repository\Entities\Dpa $dpa

DPA

string $notes

Notes

Returns

mixed —

fromApiResponse()

fromApiResponse(array{os: string, osVersion: string, osTrFamily: string, osAttributes: int, osDownloadPath: string, dpa: string, dpaAttributes: int, dpaDownloadPath: string, notes: string}  $response) : \Iqrf\Repository\Entities\OsDpa

Creates a new IQRF OS and DPA entity from the API response

Parameters

array{os: string, osVersion: string, osTrFamily: string, osAttributes: int, osDownloadPath: string, dpa: string, dpaAttributes: int, dpaDownloadPath: string, notes: string} $response

API response body

Returns

\Iqrf\Repository\Entities\OsDpa —

Created IQRF OS and DPA entity

jsonSerialize()

jsonSerialize() : array{os: array{build: string, version: string, trFamily: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}, dpa: array{version: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}, notes: string}

Serialized the IQRF OS and DPA entity into JSON

Returns

array{os: array{build: string, version: string, trFamily: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}, dpa: array{version: string, attributes: array{beta: bool|null, obsolete: bool|null}, downloadPath: string}, notes: string} —

JSON serialized IQRF OS and DPA entity