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