芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/smith.soundframestudios.net/wp-content/plugins/worker/src/Gelf/Message.php
version = $version; return $this; } /** * @return string */ public function getVersion() { return $this->version; } /** * @param integer $timestamp * * @return Gelf_Message */ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; return $this; } /** * @return integer */ public function getTimestamp() { return $this->timestamp; } /** * @param string $shortMessage * * @return Gelf_Message */ public function setShortMessage($shortMessage) { $this->shortMessage = $shortMessage; return $this; } /** * @return string */ public function getShortMessage() { return $this->shortMessage; } /** * @param string $fullMessage * * @return Gelf_Message */ public function setFullMessage($fullMessage) { $this->fullMessage = $fullMessage; return $this; } /** * @return string */ public function getFullMessage() { return $this->fullMessage; } /** * @param string $facility * * @return Gelf_Message */ public function setFacility($facility) { $this->facility = $facility; return $this; } /** * @return string */ public function getFacility() { return $this->facility; } /** * @param string $host * * @return Gelf_Message */ public function setHost($host) { $this->host = $host; return $this; } /** * @return string */ public function getHost() { return $this->host; } /** * @param integer $level * * @return Gelf_Message */ public function setLevel($level) { $this->level = $level; return $this; } /** * @return integer */ public function getLevel() { return $this->level; } /** * @param string $file * * @return Gelf_Message */ public function setFile($file) { $this->file = $file; return $this; } /** * @return string */ public function getFile() { return $this->file; } /** * @param integer $line * * @return Gelf_Message */ public function setLine($line) { $this->line = $line; return $this; } /** * @return integer */ public function getLine() { return $this->line; } /** * @param string $key * @param mixed $value * * @return Gelf_Message */ public function setAdditional($key, $value) { $this->data["_".trim($key)] = $value; return $this; } /** * @return mixed */ public function getAdditional($key) { $additional_key = "_".trim($key); return isset($this->data[$additional_key]) ? $this->data[$additional_key] : null; } /** * @return array */ public function toArray() { $messageAsArray = array( 'version' => $this->getVersion(), 'timestamp' => $this->getTimestamp(), 'short_message' => $this->getShortMessage(), 'full_message' => $this->getFullMessage(), 'facility' => $this->getFacility(), 'host' => $this->getHost(), 'level' => $this->getLevel(), 'file' => $this->getFile(), 'line' => $this->getLine(), ); foreach ($this->data as $key => $value) { $messageAsArray[$key] = $value; } return $messageAsArray; } }