From 9aeecff34797942ce8d4ce03a2dc966dc1dbf702 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 29 May 2015 04:21:24 +0200 Subject: [PATCH] Moved setter/getter from 'hub' code as also 'city' uses it. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../main/class_BaseFrameworkSystem.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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 * -- 2.39.5