$id
$id : string
Quantity entity
__construct(string $id, string $name, string $iqrfName, string $shortName, string|null $unit, int $decimalPlaces, int[] $frcs, string $helpPage, int $idValue, int $width, string $idDriver) : mixed
Constructor
string | $id | Quantity identifier string |
string | $name | Quantity name |
string | $iqrfName | Quantity IQRF name |
string | $shortName | Quantity short name |
string|null | $unit | Unit of measurement |
int | $decimalPlaces | Decimal places of measured value |
int[] | $frcs | Implemented FRC commands |
string | $helpPage | Help page URI |
int | $idValue | Quantity ID (IQRF Standard Sensor Type) |
int | $width | Data width |
string | $idDriver | JS driver member name |
fromApiResponse(array{id: string, name: string, iqrfName: string, shortName: string, unit: string, decimalPlaces: int, frcs: int[], helpPage: string, idValue: int, width: int, idDriver: string} $response) : \Iqrf\Repository\Entities\Quantity
Creates a new Quantity entity from API response
array{id: string, name: string, iqrfName: string, shortName: string, unit: string, decimalPlaces: int, frcs: int[], helpPage: string, idValue: int, width: int, idDriver: string} | $response | API response body |
Quantity entity
jsonSerialize() : array{id: string, name: string, iqrfName: string, shortName: string, unit: string|null, decimalPlaces: int, frcs: int[], helpPage: string, idValue: int, width: int, idDriver: string}
Serializes the Quantity entity into JSON
JSON serialized Quantity entity