X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fstates%2Fclass_BaseState.php;h=8bf3c32ce077e42d4520ee1bc4e5464eb71b8c11;hb=refs%2Fheads%2Fmaster;hp=820f31c385e2d6018512b91c1ac258935cf7388f;hpb=b002c5909aa0f781505dde5414964b0f014cde01;p=core.git diff --git a/framework/main/classes/states/class_BaseState.php b/framework/main/classes/states/class_BaseState.php index 820f31c3..ca179953 100644 --- a/framework/main/classes/states/class_BaseState.php +++ b/framework/main/classes/states/class_BaseState.php @@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\State; // Import framework stuff use Org\Mxchange\CoreFramework\Executor\Executor; +use Org\Mxchange\CoreFramework\Generic\FrameworkInterface; use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException; use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem; use Org\Mxchange\CoreFramework\State\Stateable; @@ -13,7 +14,7 @@ use Org\Mxchange\CoreFramework\State\Stateable; * * @author Roland Haeder * @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 * @@ -46,7 +47,7 @@ abstract 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); } @@ -66,7 +67,7 @@ abstract 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; } @@ -78,7 +79,7 @@ abstract class BaseState extends BaseFrameworkSystem implements Stateable { * @throws UnsupportedOperationException This method should be overwritten */ public function executeState (Executor $executorInstance) { - throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION); + throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION); } }