node = $node; } /** * Return the node that has caused this exception * * @return DOMNode */ public function getNode() { return $this->node; } /** * Highlight the source of the template that has caused this exception, with the node highlighted * * @param string $prepend HTML to prepend * @param string $append HTML to append * @return string Template's source, as HTML */ public function highlightNode($prepend = '', $append = '') { return TemplateHelper::highlightNode($this->node, $prepend, $append); } /** * Change the node associated with this exception * * @param DOMNode $node * @return void */ public function setNode(DOMNode $node) { $this->node = $node; } }