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

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

        return $this;
    }