src/ViKon/Parser/rule/AbstractRuleSet.php
protected function addRule(AbstractRule $rule, $category = self::CATEGORY_NONE) {
        $rule->setRuleSet($this);

        $this->rules[] = $rule;
        $this->categories[$category][] = $rule;

        return $this;
    }
protected function addRule(AbstractRule $rule, $category = self::CATEGORY_NONE) {
        $rule->setRuleSet($this);

        $this->rules[] = $rule;
        $this->categories[$category][] = $rule;

        return $this;
    }
protected function addRule ( AbstractRule $ rule , $ category = self :: CATEGORY_NONE ) { $ rule -> setRuleSet ( $ this ) ; $ this -> rules [ ] = $ rule ; $ this -> categories [ $ category ] [ ] = $ rule ; return $ this ; }
Add new rule to set

@param \ViKon\Parser\Rule\AbstractRule $rule
@param string                          $category

@return $this
Add new rule to set