\Iqrf\Repository\Entities\Metadata ActionRecord

ActionRecord metadata entity

Summary

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

$memory

$memory : ?\Iqrf\Repository\Entities\Metadata\ActionMemory

Type

ActionMemory|null

$commands

$commands : array

Type

array<string|int, mixed>

Methods

__construct()

__construct(\Iqrf\Repository\Entities\Metadata\ActionMemory|null  $memory = null, \Iqrf\Repository\Entities\Metadata\ActionCommand[]  $commands = []) : mixed

Constructs ActionRecord metadata object.

Parameters

\Iqrf\Repository\Entities\Metadata\ActionMemory|null $memory

Memory type and location in memory.

\Iqrf\Repository\Entities\Metadata\ActionCommand[] $commands

Definitions of commands.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{memory?: array{type?: int, addr?: int, size?: int}, commands?: array{value: int, text: string}[]}  $response) : \Iqrf\Repository\Entities\Metadata\ActionRecord

Parses the provided response data into an ActionRecord object

Parameters

array{memory?: array{type?: int, addr?: int, size?: int}, commands?: array{value: int, text: string}[]} $response

API response body

Returns

\Iqrf\Repository\Entities\Metadata\ActionRecord —

The parsed ActionRecord object

jsonSerialize()

jsonSerialize() : array{memory?: array{type?: int, addr?: int, size?: int}, commands?: array{value?: int, text?: string}[]}

Serializes ActionRecord entity into JSON

Returns

array{memory?: array{type?: int, addr?: int, size?: int}, commands?: array{value?: int, text?: string}[]} —

JSON-serialized ActionRecord entity