*
* @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
* 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
*
* @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
* @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