]> git.mxchange.org Git - core.git/commitdiff
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 1c22f6b7d5f3b26948389f7803f702048970fbcb..2018153d409cf0bbefea48d8c054d6cad60bac4e 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
         *