Some updates:
[core.git] / framework / main / interfaces / class_FrameworkInterface.php
1 <?php
2 // Own namespace
3 namespace Org\Mxchange\CoreFramework\Generic;
4
5 /**
6  * This is the top-level interface for all other interfaces and should contain
7  * method stubs which is being used in every class
8  *
9  * @author              Roland Haeder <webmaster@shipsimu.org>
10  * @version             0.0.0
11 <<<<<<< HEAD:framework/main/interfaces/class_FrameworkInterface.php
12  * @copyright   Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
13 =======
14  * @copyright   Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
15 >>>>>>> Some updates::inc/main/interfaces/class_FrameworkInterface.php
16  * @license             GNU GPL 3.0 or any newer version
17  * @link                http://www.shipsimu.org
18  * @todo                Find a better name for this interface
19  *
20  * This program is free software: you can redistribute it and/or modify
21  * it under the terms of the GNU General Public License as published by
22  * the Free Software Foundation, either version 3 of the License, or
23  * (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28  * GNU General Public License for more details.
29  *
30  * You should have received a copy of the GNU General Public License
31  * along with this program. If not, see <http://www.gnu.org/licenses/>.
32  */
33 interface FrameworkInterface {
34         /**
35          * Getter for field name
36          *
37          * @param       $fieldName              Field name which we shall get
38          * @return      $fieldValue             Field value from the user
39          * @throws      NullPointerException    If the result instance is null
40          */
41         function getField ($fieldName);
42
43         /**
44          * Checks if given field is set
45          *
46          * @param       $fieldName      Field name to check
47          * @return      $isSet          Whether the given field name is set
48          * @throws      NullPointerException    If the result instance is null
49          */
50         function isFieldSet ($fieldName);
51
52         /**
53          * Setter for call-back instance
54          *
55          * @param       $callbackInstance       An instance of a FrameworkInterface class
56          * @return      void
57          */
58         function setCallbackInstance (FrameworkInterface $callbackInstance);
59
60         /**
61          * Checks whether an object equals this object. You should overwrite this
62          * method to implement own equality checks
63          *
64          * @param       $objectInstance         An instance of a FrameworkInterface object
65          * @return      $equals                         Whether both objects equals
66          */
67         function equals (FrameworkInterface $objectInstance);
68
69         /**
70          * Generates a code for hashes from this class
71          *
72          * @return      $hashCode       The hash code respresenting this class
73          */
74         function hashCode ();
75
76 }