public function encode() { $this->reset(); $this->putBool($this->hideDisconnectionScreen); $this->putString($this->message); }