Explorar el Código

Add back ruleById function for BC

Nils Adermann hace 10 años
padre
commit
6f41e99fe2
Se han modificado 1 ficheros con 5 adiciones y 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;