\Iqrf\Repository\EntitiesStandardVersions

IQRF Standard versions entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$id
$name
$versions
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : int

Type

int

$name

$name : string

Type

string

$versions

$versions : array

Type

array

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 —

fromApiResponse()

fromApiResponse(array{standardID: int, name: string, versions: float[]}  $response) : \Iqrf\Repository\Entities\StandardVersions

Creates an new IQRF Standard with all available versions entity

Parameters

array{standardID: int, name: string, versions: float[]} $response

API response

Returns

\Iqrf\Repository\Entities\StandardVersions —

Created IQRF Standard with all available versions entity

jsonSerialize()

jsonSerialize() : array{id: int, name: string, versions: float[]}

Serializes Standard versions entity into JSON

Returns

array{id: int, name: string, versions: float[]} —

JSON serialized Standard versions entity