$quantity
$quantity : ?int
PersistentQuantity metadata entity
$memory : ?\Iqrf\Repository\Entities\Metadata\PersistentQuantityMemory
__construct(int|null $quantity = null, int|null $value = null, string|null $description = null, \Iqrf\Repository\Entities\Metadata\PersistentQuantityMemory|null $memory = null) : mixed
Constructs PersistentQuantity metadata object.
| int|null | $quantity | Identifier of a quantity, sensor type value is used for this purpose. |
| int|null | $value | Persisted value (in accordance with the IQRF standard) |
| string|null | $description | Persistent quantity description and use case. |
| \Iqrf\Repository\Entities\Metadata\PersistentQuantityMemory|null | $memory | Information about the type of memory and location in said memory for persistent quantity. |
fromApiResponse(array{quantity?: int, value?: int, description?: string, memory?: array{type?: int, addr?: int}} $response) : \Iqrf\Repository\Entities\Metadata\PersistentQuantity
Parses the provided response data into a PersistentQuantity object
| array{quantity?: int, value?: int, description?: string, memory?: array{type?: int, addr?: int}} | $response | API response body |
The parsed PersistentQuantity object
jsonSerialize() : array{quantity?: int, value?: int, description?: string, memory?: array{type?: int, addr?: int}}
Serializes ActionRecord entity into JSON
JSON-serialized ActionRecord entity