From: Roland Haeder Date: Mon, 31 Mar 2014 20:24:02 +0000 (+0200) Subject: Added missing getter/setter for miner instance. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af1afea3484b84fa30d8a02e05ad6dfcb6a557c9;p=hub.git Added missing getter/setter for miner instance. Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/class_BaseHubSystem.php b/application/hub/main/class_BaseHubSystem.php index 4efd83b8f..ef185202c 100644 --- a/application/hub/main/class_BaseHubSystem.php +++ b/application/hub/main/class_BaseHubSystem.php @@ -53,6 +53,11 @@ class BaseHubSystem extends BaseFrameworkSystem { */ private $cruncherInstance = NULL; + /** + * An instance of a miner + */ + private $minerInstance = NULL; + /** * Listener instance */ @@ -142,6 +147,25 @@ class BaseHubSystem extends BaseFrameworkSystem { $this->cruncherInstance = $cruncherInstance; } + /** + * Getter for miner instance + * + * @return $minerInstance An instance of a miner miner + */ + public final function getMinerInstance () { + return $this->minerInstance; + } + + /** + * Setter for miner instance + * + * @param $minerInstance An instance of a miner miner + * @return void + */ + protected final function setMinerInstance (MinerHelper $minerInstance) { + $this->minerInstance = $minerInstance; + } + /** * Setter for listener instance *