Who says 'hashCode()' says also 'equals()' ... Shame on me
[core.git] / 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
         *