\App\IqrfNetModule\EntitiesStandardLight

IQRF Standard light

Summary

Methods
Properties
Constants
__construct()
getPower()
setPower()
toArray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$index
$power
N/A

Properties

$index

$index : int

Type

normal — Index of the light

$power

$power : int

Type

normal — Power level of the light from range <0;100>

Methods

__construct()

__construct(int  $index, int  $power) : mixed

Constructor

Parameters

int $index

Index of the light

int $power

Power level of the light from range <0;100>

Returns

mixed

getPower()

getPower() : int

Get a power level of the light

Returns

int —

Power level of the light from range <0;100>

setPower()

setPower(int  $power) : void

Set a power level of the light

Parameters

int $power

Power level of the light from range <0;100>

toArray()

toArray() : array<string,int>

Convert an object to an array

Returns

array

Properties in array