\Iqrf\Repository\Entities\Metadata NfcSecured

NfcSecured metadata entity

Summary

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

$dpaCommands

$dpaCommands : array

Type

array<string|int, mixed>

Methods

__construct()

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

Constructs NfcSecured metadata object.

Parameters

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

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

Returns

mixed —

fromApiResponse()

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

Parses the provided response data into a NfcSecured object

Parameters

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

API response body

Returns

\Iqrf\Repository\Entities\Metadata\NfcSecured —

The parsed NfcSecured object

jsonSerialize()

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

Serializes the NfcSecured entity into JSON

Returns

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

JSON-serialized NfcSecured data