\Iqrf\Repository\EntitiesStandardDetail

Detailed IQRF Standard entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$id
$name
$version
$versionFlags
$driver
$notes
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

$version

$version : float

Type

float

$versionFlags

$versionFlags : int

Type

int

$driver

$driver : string

Type

string

$notes

$notes : string

Type

string

Methods

__construct()

__construct(int  $id, string  $name, float  $version, int  $versionFlags, string  $driver, string  $notes) : mixed

Constructor

Parameters

int $id

Standard ID

string $name

Standard name

float $version

Standard version

int $versionFlags

Flags for this version

string $driver

Driver code

string $notes

Notes

Returns

mixed —

fromApiResponse()

fromApiResponse(array{standardID: int, name: string, version: float, versionFlags: int, driver: string, notes: string}  $response) : \Iqrf\Repository\Entities\StandardDetail

Creates an new detailed IQRF Standard entity from the API response

Parameters

array{standardID: int, name: string, version: float, versionFlags: int, driver: string, notes: string} $response

API response body

Returns

\Iqrf\Repository\Entities\StandardDetail —

Created detailed IQRF Standard entity

jsonSerialize()

jsonSerialize() : array{id: int, name: string, version: float, versionFlags: int, driver: string, notes: string}

Serializes the detailed IQRF Standard entity into JSON

Returns

array{id: int, name: string, version: float, versionFlags: int, driver: string, notes: string} —

JSON serialized detailed IQRF Standard entity