|
@@ -82,6 +82,11 @@ class RuleSet implements \IteratorAggregate, \Countable
|
|
return $this->nextRuleId;
|
|
return $this->nextRuleId;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function ruleById($id)
|
|
|
|
+ {
|
|
|
|
+ return $this->ruleById[$id];
|
|
|
|
+ }
|
|
|
|
+
|
|
public function getRules()
|
|
public function getRules()
|
|
{
|
|
{
|
|
return $this->rules;
|
|
return $this->rules;
|