Moved $handlerInstance from BaseHubSystem to BaseFrameworkSystem
authorRoland Häder <roland@mxchange.org>
Tue, 19 Apr 2011 01:15:11 +0000 (01:15 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 19 Apr 2011 01:15:11 +0000 (01:15 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 9491cb2..9c1cf4c 100644 (file)
@@ -148,6 +148,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $outputStreamInstance = null;
 
+       /**
+        * Networkable handler instance
+        */
+       private $handlerInstance = null;
+
        /**
         * The real class name
         */
@@ -1618,6 +1623,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                $this->outputStreamInstance = $outputStreamInstance;
        }
 
+       /**
+        * Setter for handler instance
+        *
+        * @param       $handlerInstance        A Networkable instance
+        * @return      void
+        */
+       protected final function setHandlerInstance (Networkable $handlerInstance) {
+               $this->handlerInstance = $handlerInstance;
+       }
+
+       /**
+        * Getter for handler instance
+        *
+        * @return      $handlerInstance        A Networkable instance
+        */
+       protected final function getHandlerInstance () {
+               return $this->handlerInstance;
+       }
+
        /**
         * Setter for raw package Data
         *