\Iqrf\Repository\EntitiesTransceiverPins

Transceiver pins entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$total
$ioPins
$adInputs
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$total

$total : int

Type

int

$ioPins

$ioPins : int

Type

int

$adInputs

$adInputs : int

Type

int

Methods

__construct()

__construct(int  $total, int  $ioPins, int  $adInputs) : mixed

Constructor

Parameters

int $total

Total pins

int $ioPins

Number of digital I/O pins

int $adInputs

Number of analog to digital converter inputs

Returns

mixed —

fromApiResponse()

fromApiResponse(array{pins: int, ioPins: int, adInputs: int}  $response) : \Iqrf\Repository\Entities\TransceiverPins

Creates a new TransceiverPins entity from API Response

Parameters

array{pins: int, ioPins: int, adInputs: int} $response

API response body

Returns

\Iqrf\Repository\Entities\TransceiverPins —

TransceiverPins entity

jsonSerialize()

jsonSerialize() : array{total: int, ioPins: int, adInputs: int}

Serializes the TransceiverPins entity into JSON

Returns

array{total: int, ioPins: int, adInputs: int} —

JSON serialized TransceiverPins entity