\Iqrf\Repository\EntitiesManufacturer

Manufacturer entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getCompanyId()
getId()
getName()
jsonSerialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$companyId
$name
N/A

Properties

$id

$id : int

Type

int — Manufacturer ID

$companyId

$companyId : int

Type

int — Company ID

$name

$name : string

Type

string — Manufacturer name

Methods

__construct()

__construct(int  $id, int  $companyId, string  $name) : mixed

Constructor

Parameters

int $id

Manufacturer name

int $companyId

Company ID

string $name

Manufacturer name

Returns

mixed —

fromArray()

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

Creates a new manufacturer entity from an array

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Manufacturer —

Created manufacturer entity from an array

getCompanyId()

getCompanyId() : int

Returns company ID

Returns

int —

Company ID

getId()

getId() : int

Returns manufacturer ID

Returns

int —

Manufacturer ID

getName()

getName() : string

Returns manufacturer name

Returns

string —

Manufacturer name

jsonSerialize()

jsonSerialize() : array<string,int|string>

Serializes the Manufacturer entity into JSON

Returns

array

JSON serialized Manufacturer entity