\Iqrf\Repository\Entities\Metadata PersistentQuantityMemory

PersistentQuantityMemory metadata entity

Summary

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

Methods

__construct()

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

Constructs PersistentQuantityMemory metadata object.

Parameters

int|null $type

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

int|null $addr

Location of persistent quantity data in memory.

Returns

mixed —

fromApiResponse()

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

Parses the provided response data into a PersistentQuantityMemory object

Parameters

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

API response body

Returns

\Iqrf\Repository\Entities\Metadata\PersistentQuantityMemory —

The parsed PersistentQuantityMemory object

jsonSerialize()

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

Serializes PersistentQuantityMemory entity into JSON

Returns

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

JSON-serialized PersistentQuantityMemory entity