]> git.mxchange.org Git - core.git/blobdiff - inc/config/class_FrameworkConfiguration.php
Generic method hashCode() added. Please overwrite it, if you need better hashes.
[core.git] / inc / config / class_FrameworkConfiguration.php
index 7692132a1941dc9647206660909182360d510454..0494722ee770334cd03df4917af483e4718cedcb 100644 (file)
@@ -302,7 +302,16 @@ class FrameworkConfiguration implements Registerable {
        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]
+//
 ?>