\Iqrf\Repository\Entities\Metadata Nfc

Nfc metadata entity

Summary

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

$version

$version : ?int

Type

int|null

$notSecured

$notSecured : ?\Iqrf\Repository\Entities\Metadata\NfcNotSecured

Type

NfcNotSecured|null

$secured

$secured : ?\Iqrf\Repository\Entities\Metadata\NfcSecured

Type

NfcSecured|null

Methods

__construct()

__construct(int|null  $version = null, \Iqrf\Repository\Entities\Metadata\NfcNotSecured|null  $notSecured = null, \Iqrf\Repository\Entities\Metadata\NfcSecured|null  $secured = null) : mixed

Constructs Nfc metadata object.

Parameters

int|null $version

NFC communication channel version.

\Iqrf\Repository\Entities\Metadata\NfcNotSecured|null $notSecured

NFC not secured channel.

\Iqrf\Repository\Entities\Metadata\NfcSecured|null $secured

NFC secured channel.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{version?: int, notSecured?: array, secured?: array}  $response) : \Iqrf\Repository\Entities\Metadata\Nfc

Parses the provided response data into a Nfc object

Parameters

array{version?: int, notSecured?: array, secured?: array} $response

API response body

Returns

\Iqrf\Repository\Entities\Metadata\Nfc —

The parsed Nfc object

jsonSerialize()

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

Serializes Nfc entity into JSON

Returns

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

JSON-serialized Nfc entity