Explorar o código

Add back ruleById function for BC

Nils Adermann %!s(int64=10) %!d(string=hai) anos
pai
achega
6f41e99fe2
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;