public function render(AbstractRenderer $renderer = null, $active = null)
    {
        if (is_null($renderer)) {
            $renderer = $this->getRenderer();
        }

        return $renderer->render($this->getRelations(), $active);
    }
public function render(AbstractRenderer $renderer = null, $active = null)
    {
        if (is_null($renderer)) {
            $renderer = $this->getRenderer();
        }

        return $renderer->render($this->getRelations(), $active);
    }
public function render ( AbstractRenderer $ renderer = null , $ active = null ) { if ( is_null ( $ renderer ) ) { $ renderer = $ this -> getRenderer ( ) ; } return $ renderer -> render ( $ this -> getRelations ( ) , $ active ) ; }
Renders an interface

@param \Krystal\Tree\AdjacencyList\Render\AbstractRenderer $renderer Any renderer which extends AbstractRenderer
@param string $active Active item
@return string
Renders an interface