importanceLevel = $importanceLevel; } public function setImportanceLevel($importanceLevel) { $this->importanceLevel = $importanceLevel; } public function getImportanceLevel() { return $this->importanceLevel; } public function writeXML(\XMLWriter $xmlWriter) { $jsonArray = array(Constants::IMPORTANCE_LEVEL => $this->importanceLevel); $xmlWriter->writeElement(Constants::WEBSOCKET, json_encode($jsonArray)); } } ?>