PHP Class Phue\Command\UpdateSensor

Inheritance: extends CreateSensor
Show file Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$attributes array Sensor attributes
$sensorId string Sensor Id

Public Methods

Method Description
__construct ( mixed $sensor ) Constructs a command
name ( string $name ) : self Set name
send ( Client $client ) Send command

Method Details

__construct() public method

Constructs a command
public __construct ( mixed $sensor )
$sensor mixed Sensor Id or Sensor object

name() public method

Set name
public name ( string $name ) : self
$name string Name
return self This object

send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client

Property Details

$attributes protected property

Sensor attributes
protected array $attributes
return array

$sensorId protected property

Sensor Id
protected string $sensorId
return string