name = $name; $this->value = $value; } public function getName() { return $this->name; } public function getValue() { return $this->value; } public function setValue($value) { $this->value = trim($value); } public function render() { $str = "{$this->name}:\n{$this->value}\n"; if (!strpos($this->value, "\n")) { $str = "{$this->name}: {$this->value}"; } return $str; } }