]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/class_FrameworkInterface.php
Refacuring:
[core.git] / framework / main / interfaces / class_FrameworkInterface.php
index 909832f937b0ee9b51174e482433e7e036454a65..5b744e15e58f7f1ea96b9c63a44c96cab5004675 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 - 2020 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
@@ -34,7 +34,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 +43,15 @@ 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
+        *
+        * @param       $callbackInstance       An instance of a FrameworkInterface class
+        * @return      void
+        */
+       function setCallbackInstance (FrameworkInterface $callbackInstance);
 
        /**
         * Checks whether an object equals this object. You should overwrite this