\Iqrf\Repository\EntitiesOsDpa

IQRF OS and DPA entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$os
$dpa
$notes
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$os

$os : \Iqrf\Repository\Entities\Os

Type

\Iqrf\Repository\Entities\Os

$dpa

$dpa : \Iqrf\Repository\Entities\Dpa

Type

\Iqrf\Repository\Entities\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, 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, 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, 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, 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