X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fclass_FrameworkInterface.php;h=216f95be97901c8097f3a94ac29af498d2c63130;hb=c21969ecc9ea3689d37dac8dd39ea202b2726e99;hp=909832f937b0ee9b51174e482433e7e036454a65;hpb=78a010fef84895720e796842208f01dfb619c332;p=core.git diff --git a/framework/main/interfaces/class_FrameworkInterface.php b/framework/main/interfaces/class_FrameworkInterface.php index 909832f9..216f95be 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 - 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 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,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