Browse Source

Add back ruleById function for BC

Nils Adermann 10 years ago
parent
commit
6f41e99fe2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Composer/DependencyResolver/RuleSet.php

+ 5 - 0
src/Composer/DependencyResolver/RuleSet.php

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