]> git.mxchange.org Git - hub.git/commitdiff
Added missing getter/setter for miner instance.
authorRoland Haeder <roland@mxchange.org>
Mon, 31 Mar 2014 20:24:02 +0000 (22:24 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 31 Mar 2014 20:24:02 +0000 (22:24 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/class_BaseHubSystem.php

index 4efd83b8fa8ae5b42e2c156403c91663c966f6ab..ef185202c600fc836f3b75a6c3dd663bfc6eae2a 100644 (file)
@@ -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
         *