From eb4933a618b66a53b547e2629302a00e4640189e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 5 Mar 2011 12:23:16 +0000 Subject: [PATCH] Who says 'hashCode()' says also 'equals()' ... Shame on me --- inc/classes/interfaces/class_FrameworkInterface.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/classes/interfaces/class_FrameworkInterface.php b/inc/classes/interfaces/class_FrameworkInterface.php index 1c22f6b7..2018153d 100644 --- a/inc/classes/interfaces/class_FrameworkInterface.php +++ b/inc/classes/interfaces/class_FrameworkInterface.php @@ -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 * -- 2.30.2