From: Roland Häder Date: Mon, 4 Feb 2013 19:54:07 +0000 (+0000) Subject: Added DHT instance (Distributable interface) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31ef39baf005dc2e75e93adfb2fb8306c2976ab1;p=core.git Added DHT instance (Distributable interface) --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 6766aa39..b34a1b24 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -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 *