\Iqrf\Repository\Entities\Metadata Mfgc

Mfgc metadata entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
version
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$version

$version : ?int

Type

int|null

Methods

__construct()

__construct(int|null  $version = null) : mixed

Constructs Mfgc metadata object.

Parameters

int|null $version

Version of test communication channel for production.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{version?: int}  $response) : \Iqrf\Repository\Entities\Metadata\Mfgc

Parses the provided response data into a Mfgc object

Parameters

array{version?: int} $response

API response body

Returns

\Iqrf\Repository\Entities\Metadata\Mfgc —

The parsed Mfgc object

jsonSerialize()

jsonSerialize() : array{version?: int}

Serializes the Mfgc entity into JSON

Returns

array{version?: int} —

JSON-serialized Mfgc data