CommentNode::identifyCommentType PHP Method

identifyCommentType() private method

private identifyCommentType ( )
    private function identifyCommentType()
    {
        $haml = $this->getHaml();
        if (preg_match(CommentNode::CONDITIONAL_COMMENT, $haml, $this->_conditionalMatches)) {
            $this->_commentType = CommentNode::CONDITIONAL_COMMENT_TYPE;
        } else {
            if (substr($haml, 0, 1) === CommentNode::HTML_COMMENT) {
                $this->_commentType = CommentNode::HTML_COMMENT_TYPE;
            } else {
                if (substr($haml, 0, 2) === CommentNode::HAML_COMMENT) {
                    $this->_commentType = CommentNode::HAML_COMMENT_TYPE;
                }
            }
        }
    }