$present
$present : bool
Accumulator metadata entity
__construct(bool $present, string|null $type = null, float|null $lowLevel = null) : mixed
Constructs Accumulator metadata object.
| bool | $present | Power supplied from an accumulator. |
| string|null | $type | Accumulator type identifier. |
| float|null | $lowLevel | Voltage (in V) threshold indicating a recharge is recommended. |
fromApiResponse(array{present: bool, type: string|null, lowLevel: float|null} $response) : \Iqrf\Repository\Entities\Metadata\Accumulator
Parses the provided response data into an Accumulator object
| array{present: bool, type: string|null, lowLevel: float|null} | $response | API response body |
Thrown if required properties are missing
The parsed Accumulator object