public function setName($name) { $this->client->sendCommand(new SetBridgeConfig(array('name' => (string) $name))); $this->attributes->name = (string) $name; return $this; }