]> git.mxchange.org Git - core.git/commitdiff
Added DHT instance (Distributable interface)
authorRoland Häder <roland@mxchange.org>
Mon, 4 Feb 2013 19:54:07 +0000 (19:54 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 4 Feb 2013 19:54:07 +0000 (19:54 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 6766aa39beb3e74d5fb4d2a4dbb429fae64975a9..b34a1b2426f5fab7da1bbd1bf28855c4468860ad 100644 (file)
@@ -163,6 +163,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $visitorInstance = NULL;
 
+       /**
+        * DHT instance
+        */
+       private $dhtInstance = NULL;
+
        /**
         * An instance of a database wrapper class
         */
@@ -1145,6 +1150,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->visitorInstance;
        }
 
+       /**
+        * Setter for DHT instance
+        *
+        * @param       $dhtInstance    A Distributable instance
+        * @return      void
+        */
+       protected final function setDhtInstance (Distributable $dhtInstance) {
+               $this->dhtInstance = $dhtInstance;
+       }
+
+       /**
+        * Getter for DHT instance
+        *
+        * @return      $dhtInstance    A Distributable instance
+        */
+       protected final function getDhtInstance () {
+               return $this->dhtInstance;
+       }
+
        /**
         * Setter for raw package Data
         *