]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php
code comments including license information added, type hints added, minor rewrites...
[shipsimu.git] / inc / classes / exceptions / io / class_InvalidMD5ChecksumException.php
index 349e7132ef04e64ce169657502024767c34c815e..1aabdb48e719d9c66be6040b6240c98bc28815a7 100644 (file)
@@ -2,10 +2,11 @@
 /**
  * An exception thrown when a MD5 checksum does not exception
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0
+ * @author             Roland Haeder <webmaster@mxchange.org>
+ * @version            0.3.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.mxchange.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,14 +25,11 @@ class InvalidMD5ChecksumException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die MD5-Pr&uuml;fsummen <u>%s</u> und <u>%s</u> stimmen nicht &uuml;berein!",
                        $array[0]->__toString(),