\Iqrf\Repository\Entities\Metadata HwpidVersions

HwpidVersions metadata entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
min
max
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

$min

$min : int

Type

int

$max

$max : int

Type

int

Methods

__construct()

__construct(int  $min, int  $max) : mixed

Constructs HwpidVersions metadata object.

Parameters

int $min

Minimum HWPID version the profile applies to.

int $max

Maximum HWPID version the profile applies to. Value -1 represents no maximum version.

Returns

mixed —

fromApiResponse()

fromApiResponse(array{min: int, max: int}  $response) : \Iqrf\Repository\Entities\Metadata\HwpidVersions

Parses the provided response data into a HwpidVersions object

Parameters

array{min: int, max: int} $response

API response body

Throws

\InvalidArgumentException

Thrown if required properties are missing

Returns

\Iqrf\Repository\Entities\Metadata\HwpidVersions —

The parsed HwpidVersions object

jsonSerialize()

jsonSerialize() : array{min: int, max: int}

Serializes the HwpidVersions entity into JSON

Returns

array{min: int, max: int} —

JSON-serialized HwpidVersions data