Several MVC classes added, entryPoint method rewritten
[shipsimu.git] / inc / classes / exceptions / main / class_GetterNotFoundException.php
index c89c0d2519ddf0720891d7ae2c3a99c75569b94e..b03b21c8a787852b3abc73ed3bc39464a2662606 100644 (file)
@@ -3,10 +3,10 @@
  * An exception thrown when a getter for an attribute was not found
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
- * @version            0.3.0
+ * @version            0.0.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
+ * @link               http://www.ship-simu.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
@@ -29,10 +29,7 @@ class GetterNotFoundException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($dataArray, $code) {
-               // Cast the array
-               $dataArray = (array) $dataArray;
-
+       public function __construct (array $dataArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Getter-Methode f&uuml;r Attribut <u>%s</u> nicht gefunden.",
                        $dataArray[0]->__toString(),