]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/class_FrameworkInterface.php
Continued:
[core.git] / framework / main / interfaces / class_FrameworkInterface.php
index cb52f2685b27c5fe6665381c89e37c8f580c01f0..b0fb3d1c065770deb120fcfbab9beff97b8776d9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace CoreFramework\Generic;
+namespace Org\Mxchange\CoreFramework\Generic;
 
 /**
  * This is the top-level interface for all other interfaces and should contain
@@ -8,7 +8,7 @@ namespace CoreFramework\Generic;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2022 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  * @todo               Find a better name for this interface
@@ -27,6 +27,10 @@ namespace CoreFramework\Generic;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface FrameworkInterface {
+       // Exception constants
+       const EXCEPTION_INVALID_ARGUMENT = 0x200;
+       const EXCEPTION_LOGIC_EXCEPTION  = 0x201;
+
        /**
         * Getter for field name
         *
@@ -34,7 +38,7 @@ interface FrameworkInterface {
         * @return      $fieldValue             Field value from the user
         * @throws      NullPointerException    If the result instance is null
         */
-       function getField ($fieldName);
+       function getField (string $fieldName);
 
        /**
         * Checks if given field is set
@@ -43,7 +47,7 @@ interface FrameworkInterface {
         * @return      $isSet          Whether the given field name is set
         * @throws      NullPointerException    If the result instance is null
         */
-       function isFieldSet ($fieldName);
+       function isFieldSet (string $fieldName);
 
        /**
         * Setter for call-back instance