<?php
namespace JBBCode;

defined('PROJECT_PATH') OR exit('No direct script access allowed');

/**
 * Defines an interface for a visitor to traverse the node graph.
 *
 * @author jbowens
 * @since January 2013
 */
interface NodeVisitor
{

    public function visitDocumentElement(DocumentElement $documentElement);

    public function visitTextNode(TextNode $textNode);

    public function visitElementNode(ElementNode $elementNode);

}
