PHP Class Phue\Command\GetNewLights

Inheritance: implements Phue\Command\CommandInterface
Show file Open project: sqmk/phue

Protected Properties

Property Type Description
$lastScan string Last scan
$lights array Found lights

Public Methods

Method Description
getLights ( ) : array Get lights
isScanActive ( ) : boolean Is scan currently active
send ( Client $client ) : self Send command

Method Details

getLights() public method

Get lights
public getLights ( ) : array
return array List of new lights

isScanActive() public method

Is scan currently active
public isScanActive ( ) : boolean
return boolean True if active, false if not

send() public method

Send command
public send ( Client $client ) : self
$client Phue\Client Phue Client
return self This object

Property Details

$lastScan protected property

Last scan
protected string $lastScan
return string

$lights protected property

Found lights
protected array $lights
return array