public function add($name, $content, $append = true) { if (isset($this->data[$name]) && $append) { $this->data[$name] .= $content; } else { $this->data[$name] = $content; } $this->{$name} = $this->data[$name]; }