X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fclass_FrameworkInterface.php;h=216f95be97901c8097f3a94ac29af498d2c63130;hb=c21969ecc9ea3689d37dac8dd39ea202b2726e99;hp=047b94affe0a9e6adede1987a87f042bb796d2f2;hpb=f57dd51863ec9baacba447d76b46d5c709b9b02e;p=core.git diff --git a/framework/main/interfaces/class_FrameworkInterface.php b/framework/main/interfaces/class_FrameworkInterface.php index 047b94af..216f95be 100644 --- a/framework/main/interfaces/class_FrameworkInterface.php +++ b/framework/main/interfaces/class_FrameworkInterface.php @@ -8,7 +8,7 @@ namespace Org\Mxchange\CoreFramework\Generic; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2019 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,13 @@ namespace Org\Mxchange\CoreFramework\Generic; * along with this program. If not, see . */ 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; + /** * Getter for field name * @@ -34,7 +41,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 +50,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