$memory
$memory : ?\Iqrf\Repository\Entities\Metadata\ActionMemory
ActionRecord metadata entity
$memory : ?\Iqrf\Repository\Entities\Metadata\ActionMemory
__construct(\Iqrf\Repository\Entities\Metadata\ActionMemory|null $memory = null, \Iqrf\Repository\Entities\Metadata\ActionCommand[] $commands = []) : mixed
Constructs ActionRecord metadata object.
| \Iqrf\Repository\Entities\Metadata\ActionMemory|null | $memory | Memory type and location in memory. |
| \Iqrf\Repository\Entities\Metadata\ActionCommand[] | $commands | Definitions of commands. |
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
| array{memory?: array{type?: int, addr?: int, size?: int}, commands?: array{value: int, text: string}[]} | $response | API response body |
The parsed ActionRecord object
jsonSerialize() : array{memory?: array{type?: int, addr?: int, size?: int}, commands?: array{value?: int, text?: string}[]}
Serializes ActionRecord entity into JSON
JSON-serialized ActionRecord entity