$hwpid
$hwpid : int
Product entity
__construct(int $hwpid, string $name, int $manufacturerId, string $companyName, string $homepage, string $picture, \Iqrf\Repository\Enums\RfModes $rfMode) : mixed
Constructor
int | $hwpid | Product HWPID |
string | $name | Product name |
int | $manufacturerId | Manufacturer ID |
string | $companyName | Company name |
string | $homepage | Product homepage |
string | $picture | Product picture |
\Iqrf\Repository\Enums\RfModes | $rfMode | Product RF mode |
fromApiResponse(array{hwpid: int, name: string, manufacturerID: int, companyName: string, homePage: string, picture: string, rfMode: int} $response) : \Iqrf\Repository\Entities\Product
Creates a new product entity from the API response
array{hwpid: int, name: string, manufacturerID: int, companyName: string, homePage: string, picture: string, rfMode: int} | $response | API response data |
Thrown when the API response data are corrupted
Created product entity
jsonSerialize() : array{hwpid: int, name: string, manufacturerId: int, companyName: string, homepage: string, picture: string, rfMode: string}
Serializes the product entity into JSON
JSON serialized product entity