\Iqrf\Repository\EntitiesStandard

IQRF Standard entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
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
$name
N/A

Properties

$id

$id : int

Type

int — Standard ID

$name

$name : string

Type

string — Standard name

Methods

__construct()

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

Constructor

Parameters

int $id

Standard ID

string $name

Standard name

Returns

mixed —

fromArray()

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

Creates a new standard entity from an array

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Standard —

Created standard entity

getId()

getId() : int

Returns the standard ID

Returns

int —

Standard ID

getName()

getName() : string

Returns the standard name

Returns

string —

Standard name

jsonSerialize()

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

Serializes the IQRF Standard entity into JSON

Returns

array

JSON serialized IQRF Standard entity