private function appendFooter($string) { $result = $string; if ($this->footer !== null) { $footer = $this->footer->getValue(); if ($this->footer->filtering) { $fr = $this->getFilteredReader(new StringReader($footer)); $footer = $fr->read(); } $result = $string . $footer; } return $result; }