PHP Class Phue\Command\UpdateSensorConfig

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

Protected Properties

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

Public Methods

Method Description
__construct ( mixed $sensor ) Constructs a command
configAttribute ( string $key, mixed $value ) : self Config attribute
send ( Client $client ) Send command

Method Details

__construct() public method

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

configAttribute() public method

Config attribute
public configAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
return self This object

send() public method

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

Property Details

$config protected property

Sensor config
protected array $config
return array

$sensorId protected property

Sensor Id
protected string $sensorId
return string