protected function addRules(DOMElement $node, Tag $tag)
	{
		foreach ($this->xpath->query('rules/*', $node) as $ruleNode)
		{
			$methodName = $ruleNode->nodeName;
			$args       = [];
			if ($ruleNode->textContent)
			{
				$args[] = $ruleNode->textContent;
			}

			call_user_func_array([$tag->rules, $methodName], $args);
		}
	}
protected function addRules(DOMElement $node, Tag $tag)
	{
		foreach ($this->xpath->query('rules/*', $node) as $ruleNode)
		{
			$methodName = $ruleNode->nodeName;
			$args       = [];
			if ($ruleNode->textContent)
			{
				$args[] = $ruleNode->textContent;
			}

			call_user_func_array([$tag->rules, $methodName], $args);
		}
	}
protected function addRules ( DOMElement $ node , Tag $ tag ) { foreach ( $ this -> xpath -> query ( 'rules/*' , $ node ) as $ ruleNode ) { $ methodName = $ ruleNode -> nodeName ; $ args = [ ] ; if ( $ ruleNode -> textContent ) { $ args [ ] = $ ruleNode -> textContent ; } call_user_func_array ( [ $ tag -> rules , $ methodName ] , $ args ) ; } }
Add rules to given tag based on given definition

@param  DOMElement $node
@param  Tag        $tag
@return void
Add rules to given tag based on given definition