\App\IqrfNetModule\EntitiesStandardBinaryOutput

IQRF Standard binary output

Summary

Methods
Properties
Constants
__construct()
getState()
setState()
jsonSerialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$index
$state
N/A

Properties

$index

$index : int

Type

normal — Index of the binary output

$state

$state : bool

Type

normal — State of the binary output

Methods

__construct()

__construct(int  $index, bool  $state) : mixed

Constructor

Parameters

int $index

Index of the binary output

bool $state

State of the binary output

Returns

mixed

getState()

getState() : bool

Get the binary output's state

Returns

bool —

Binary output's state

setState()

setState(bool  $state) : void

Set the binary output's state

Parameters

bool $state

Binary output's state

jsonSerialize()

jsonSerialize() : array<string,bool|int>

Serializes IQRF Standard binary output entity into JSON

Returns

array

JSON serialized data