Who says 'hashCode()' says also 'equals()' ... Shame on me
authorRoland Häder <roland@mxchange.org>
Sat, 5 Mar 2011 12:23:16 +0000 (12:23 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Mar 2011 12:23:16 +0000 (12:23 +0000)
inc/classes/interfaces/class_FrameworkInterface.php

index 1c22f6b..2018153 100644 (file)
@@ -33,6 +33,15 @@ interface FrameworkInterface {
         */
        function getField ($fieldName);
 
+       /**
+        * Checks wether an object equals this object. You should overwrite this
+        * method to implement own equality checks
+        *
+        * @param       $objectInstance         An instance of a FrameworkInterface object
+        * @return      $equals                         Wether both objects equals
+        */
+       function equals (FrameworkInterface $objectInstance);
+
        /**
         * Generates a code for hashes from this class
         *