\Iqrf\Repository\EntitiesStandardVersions

IQRF Standard versions entity

Summary

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

Properties

$id

$id : int

Type

int — Standard ID

$name

$name : string

Type

string — Standard name

$versions

$versions : float[]

Type

float[] — Array of available versions

Methods

__construct()

__construct(int  $id, string  $name, float[]  $versions) : mixed

Constructor

Parameters

int $id

Standard ID

string $name

Standard name

float[] $versions

Array of available versions

Returns

mixed —

fromArray()

fromArray(array<string,float[]|int|string>  $data) : \Iqrf\Repository\Entities\StandardVersions

Creates an new IQRF Standard with all available versions entity

Parameters

array $data

JSON data in an array

Returns

\Iqrf\Repository\Entities\StandardVersions —

Created IQRF Standard with all available versions entity

getId()

getId() : int

Returns the standard ID

Returns

int —

Standard ID

getName()

getName() : string

Returns the standard name

Returns

string —

Standard name

getVersions()

getVersions() : float[]

Returns the array of available versions

Returns

float[] —

Array of available versions

jsonSerialize()

jsonSerialize() : array<string,float[]|int|string>

Serializes Standard versions entity into JSON

Returns

array

JSON serialized Standard versions entity