From: Roland Haeder Date: Fri, 29 May 2015 02:21:24 +0000 (+0200) Subject: Moved setter/getter from 'hub' code as also 'city' uses it. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9aeecff34797942ce8d4ce03a2dc966dc1dbf702;p=core.git Moved setter/getter from 'hub' code as also 'city' uses it. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index d76b3d2e..8c459c5d 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -218,6 +218,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ private $communicatorInstance = NULL; + /** + * State instance + */ + private $stateInstance = NULL; + /** * Thousands separator */ @@ -1533,6 +1538,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { $this->communicatorInstance = $communicatorInstance; } + /** + * Setter for state instance + * + * @param $stateInstance A Stateable instance + * @return void + */ + public final function setStateInstance (Stateable $stateInstance) { + $this->stateInstance = $stateInstance; + } + + /** + * Getter for state instance + * + * @return $stateInstance A Stateable instance + */ + public final function getStateInstance () { + return $this->stateInstance; + } + /** * Setter for command name *