Continued:
[core.git] / framework / main / interfaces / class_FrameworkInterface.php
index d40ffb35a47bc917550a72db16d118c2bf49ff2c..8c1003d51581b1297578dd9c3092bd8e8ddbefac 100644 (file)
@@ -8,7 +8,7 @@ namespace Org\Mxchange\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 - 2023 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,16 @@ namespace Org\Mxchange\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;
+       const EXCEPTION_UNSPPORTED_OPERATION = 0x202;
+       const EXCEPTION_UNEXPECTED_VALUE     = 0x203;
+       const EXCEPTION_CLASS_NOT_FOUND      = 0x204;
+       const EXCEPTION_BAD_METHOD_CALL      = 0x205;
+       const EXCEPTION_OUT_OF_BOUNDS        = 0x206;
+       const EXCEPTION_IS_NULL_POINTER      = 0x207;
+
        /**
         * Getter for field name
         *
@@ -34,7 +44,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 +53,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