\Iqrf\Repository\Entities\Metadata ActionMemory

ActionMemory metadata entity

Summary

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

$type

$type : ?int

Type

int|null

$addr

$addr : ?int

Type

int|null

$size

$size : ?int

Type

int|null

Methods

__construct()

__construct(int|null  $type = null, int|null  $addr = null, int|null  $size = null) : mixed

Constructs ActionMemory metadata object.

Parameters

int|null $type

Type of memory action data is stored in, the value is the same as PNUM.

int|null $addr

Location in memory.

int|null $size

Size of allocated data block for actions.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{type?: int, addr?: int, size?: int}  $response) : \Iqrf\Repository\Entities\Metadata\ActionMemory

Parses the provided response data into an ActionMemory object

Parameters

array{type?: int, addr?: int, size?: int} $response

API response body

Returns

\Iqrf\Repository\Entities\Metadata\ActionMemory —

The parsed ActionMemory object

jsonSerialize()

jsonSerialize() : array{type?: int, addr?: int, size?: int}

Serializes ActionMemory entity into JSON

Returns

array{type?: int, addr?: int, size?: int} —

JSON-serialized ActionMemory entity