time = $time; if ($contents) $this->contents = $contents; else $this->contents = array (); } /** * Get log time * * @return integer log time */ public function getTime() { return $this->time; } /** * Set log time * * @param integer $time * log time */ public function setTime($time) { $this->time = $time; } /** * Get log contents * * @return array log contents */ public function getContents() { return $this->contents; } /** * Set log contents * * @param array $contents * log contents */ public function setContents($contents) { $this->contents = $contents; } /** * Add a key/value pair as log content to the log * * @param string $key * log content key * @param string $value * log content value */ public function pushBack($key, $value) { $this->contents [$key] = $value; } }