PHPMD\RuleSetFactory::parseRuleNode PHP Method

parseRuleNode() private method

This method parses a single rule xml node. Bases on the structure of the xml node this method delegates the parsing process to another method in this class.
private parseRuleNode ( phpmd\RuleSet $ruleSet, SimpleXMLElement $node ) : void
$ruleSet phpmd\RuleSet
$node SimpleXMLElement
return void
    private function parseRuleNode(RuleSet $ruleSet, \SimpleXMLElement $node)
    {
        if (substr($node['ref'], -3, 3) === 'xml') {
            $this->parseRuleSetReferenceNode($ruleSet, $node);
        } elseif ('' === (string) $node['ref']) {
            $this->parseSingleRuleNode($ruleSet, $node);
        } else {
            $this->parseRuleReferenceNode($ruleSet, $node);
        }
    }