X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fclass_FrameworkInterface.php;h=b0fb3d1c065770deb120fcfbab9beff97b8776d9;hb=5c9360c9139b761d2b09351930c1e843d33af240;hp=cb52f2685b27c5fe6665381c89e37c8f580c01f0;hpb=b954ccaa3dbfc59ddc76e463d2980a5dc204cc9f;p=core.git diff --git a/framework/main/interfaces/class_FrameworkInterface.php b/framework/main/interfaces/class_FrameworkInterface.php index cb52f268..b0fb3d1c 100644 --- a/framework/main/interfaces/class_FrameworkInterface.php +++ b/framework/main/interfaces/class_FrameworkInterface.php @@ -1,6 +1,6 @@ * @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 . */ 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