public function __construct(LogInterpreter $interpreter, $name = '') { $this->name = $name; $this->interpreter = $interpreter; $this->document = new \DOMDocument("1.0", "UTF-8"); $this->document->formatOutput = true; }