* @throws NullPointerException If the result instance is null
*/
function getField ($fieldName);
+
+ /**
+ * Generates a code for hashes from this class
+ *
+ * @return $hashCode The hash code respresenting this class
+ */
+ function hashCode ();
}
//
$this->partialStub('Developer mode inactive. Message:' . $message);
}
}
+
+ /**
+ * Generates a generic hash code of this class. You should really overwrite
+ * this method with your own hash code generator code. But keep KISS in mind.
+ *
+ * @return $hashCode A generic hash code respresenting this whole class
+ */
+ public function hashCode () {
+ // Simple hash code
+ return crc32($this->__toString());
+ }
}
// [EOF]
public final function getField ($fieldName) {
// Our super interface "FrameworkInterface" requires this
}
+
+ /**
+ * Generates a code for hashes from this class
+ *
+ * @return $hashCode The hash code respresenting this class
+ */
+ public function hashCode () {
+ return crc32($this->__toString());
+ }
}
-// [EOF]
+//
?>