\Iqrf\Repository\EntitiesProduct

Product entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getHwpid()
getName()
getManufacturerId()
getCompanyName()
getHomepage()
getPicture()
getRfMode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$hwpid
$name
$manufacturerId
$companyName
$homepage
$picture
$rfMode
N/A

Properties

$hwpid

$hwpid : int

Type

int — Product HWPID

$name

$name : string

Type

string — Product name

$manufacturerId

$manufacturerId : int

Type

int — Manufacturer ID

$companyName

$companyName : string

Type

string — Company name

$homepage

$homepage : string

Type

string — Product homepage

$picture

$picture : string

Type

string — Product picture

$rfMode

$rfMode : \Iqrf\Repository\Enums\RfModes

Type

RfModes — Product RF mode

Methods

__construct()

__construct(int  $hwpid, string  $name, int  $manufacturerID, string  $companyName, string  $homePage, string  $picture, int  $rfMode) : mixed

Constructor

Parameters

int $hwpid

Product HWPID

string $name

Product name

int $manufacturerID

Manufacturer ID

string $companyName

Company name

string $homePage

Product homepage

string $picture

Product picture

int $rfMode

Product RF mode

Returns

mixed —

fromArray()

fromArray(array<string,int|string>  $data) : \Iqrf\Repository\Entities\Product

Creates a new product entity from an array

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Product —

Created product entity

getHwpid()

getHwpid() : int

Returns the product HWPID

Returns

int —

Product HWPID

getName()

getName() : string

Returns the product name

Returns

string —

Product name

getManufacturerId()

getManufacturerId() : int

Returns the manufacturer ID

Returns

int —

Manufacturer ID

getCompanyName()

getCompanyName() : string

Returns the company name

Returns

string —

Company name

getHomepage()

getHomepage() : string

Returns the product homepage

Returns

string —

Product homepage

getPicture()

getPicture() : string

Returns the product picture

Returns

string —

Product picture

getRfMode()

getRfMode() : \Iqrf\Repository\Enums\RfModes

Returns the product RF mode

Returns

\Iqrf\Repository\Enums\RfModes —

Product RF mode