X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fstates%2Fclass_BaseState.php;h=86e9a7ff04642e0f9004f6ce4efc033a9c32069c;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=c11ce464e03d3268fd21f5661140077dd79cb302;hpb=78a010fef84895720e796842208f01dfb619c332;p=core.git diff --git a/framework/main/classes/states/class_BaseState.php b/framework/main/classes/states/class_BaseState.php index c11ce464..86e9a7ff 100644 --- a/framework/main/classes/states/class_BaseState.php +++ b/framework/main/classes/states/class_BaseState.php @@ -1,16 +1,19 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -27,7 +30,7 @@ use CoreFramework\Object\BaseFrameworkSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseState extends BaseFrameworkSystem implements Stateable { +abstract class BaseState extends BaseFrameworkSystem implements Stateable { // Exception code constants const EXCEPTION_INVALID_STATE = 0xc00; @@ -43,7 +46,7 @@ class BaseState extends BaseFrameworkSystem implements Stateable { * @param $className Name of the class * @return void */ - protected function __construct ($className) { + protected function __construct (string $className) { // Call parent constructor parent::__construct($className); } @@ -63,7 +66,7 @@ class BaseState extends BaseFrameworkSystem implements Stateable { * @param $stateName Name of this state in a printable maner * @return void */ - protected final function setStateName ($stateName) { + protected final function setStateName (string $stateName) { $this->stateName = $stateName; }