RootNode::shouldGoInsideLastNode PHP Method

shouldGoInsideLastNode() protected method

protected shouldGoInsideLastNode ( $node )
    protected function shouldGoInsideLastNode($node)
    {
        // @todo add some doc here explaining why this
        if ($this->_childrenCount == 0) {
            return false;
        }
        $lastNode = $this->_children[$this->_childrenCount - 1];
        return $node->getIndentationLevel() > $lastNode->getIndentationLevel() || $lastNode->shouldContain($node);
    }