\Iqrf\Repository\Entities\Metadata NfcNotSecured

NfcNotSecured metadata entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
dpaMenu
dpaCommands
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

$dpaMenu

$dpaMenu : array

Type

array<string|int, mixed>

$dpaCommands

$dpaCommands : array

Type

array<string|int, mixed>

Methods

__construct()

__construct(int[]  $dpaMenu = [], \Iqrf\Repository\Entities\Metadata\DpaCommand[]  $dpaCommands = []) : mixed

Constructs NfcNotSecured metadata object.

Parameters

int[] $dpaMenu

Available DPA menu items.

\Iqrf\Repository\Entities\Metadata\DpaCommand[] $dpaCommands

Available DPA commands specified by a pair of peripheral and peripheral command.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{dpaMenu?: int[], dpaCommands?: array{pnum: int, pcmd: int}[]}  $response) : \Iqrf\Repository\Entities\Metadata\NfcNotSecured

Parses the provided response data into a NfcNotSecured object

Parameters

array{dpaMenu?: int[], dpaCommands?: array{pnum: int, pcmd: int}[]} $response

API response body

Returns

\Iqrf\Repository\Entities\Metadata\NfcNotSecured —

The parsed NfcNotSecured object

jsonSerialize()

jsonSerialize() : array{dpaMenu?: int[], dpaCommands?: array{pnum: int, pcmd: int}[]}

Serializes the NfcNotSecured entity into JSON

Returns

array{dpaMenu?: int[], dpaCommands?: array{pnum: int, pcmd: int}[]} —

JSON-serialized NfcNotSecured data