Exemplo n.º 1
0
Arquivo: Group.php Projeto: sqmk/phue
 /**
  * Set effect
  *
  * @param string $mode
  *            Effect mode
  *
  * @return self This object
  */
 public function setEffect($mode = SetLightState::EFFECT_NONE)
 {
     $x = new SetGroupState($this);
     $y = $x->effect($mode);
     $this->client->sendCommand($y);
     $this->attributes->action->effect = $mode;
     return $this;
 }