Fix Horde_Injector_Binder_AnnotatedSetters#equals()
authorChuck Hagenbuch <chuck@horde.org>
Fri, 11 Jun 2010 14:30:02 +0000 (10:30 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 11 Jun 2010 14:30:02 +0000 (10:30 -0400)
framework/Injector/lib/Horde/Injector/Binder/AnnotatedSetters.php

index 0b964b6..eee9f3e 100644 (file)
@@ -38,7 +38,13 @@ class Horde_Injector_Binder_AnnotatedSetters implements Horde_Injector_Binder
      */
     public function equals(Horde_Injector_Binder $otherBinder)
     {
-        return $otherBinder instanceof Horde_Injector_Binder_AnnotatedSetters;
+        return ($otherBinder instanceof Horde_Injector_Binder_AnnotatedSetters) &&
+            $this->getBinder()->equals($otherBinder->getBinder());
+    }
+
+    public function getBinder()
+    {
+        return $this->_binder;
     }
 
     /**