PHPMD\RuleSetFactory::parseRuleSetReference PHP Method

parseRuleSetReference() private method

Parses a rule-set xml file referenced by the given rule-set xml element.
Since: 0.2.3
private parseRuleSetReference ( SimpleXMLElement $ruleSetNode ) : PHPMD\RuleSet
$ruleSetNode SimpleXMLElement
return PHPMD\RuleSet
    private function parseRuleSetReference(\SimpleXMLElement $ruleSetNode)
    {
        $ruleSetFactory = new RuleSetFactory();
        $ruleSetFactory->setMinimumPriority($this->minimumPriority);
        return $ruleSetFactory->createSingleRuleSet((string) $ruleSetNode['ref']);
    }