]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/class_BaseFrameworkSystem.php
Visitor instances can now be stored in all objects for speeding up the code.
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 9491cb23c2015afaf8ddf9894542481e19a6fd6b..e34ebe98e548d660bc7c33f483f57a26a7398818 100644 (file)
@@ -148,6 +148,16 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $outputStreamInstance = null;
 
+       /**
+        * Networkable handler instance
+        */
+       private $handlerInstance = null;
+
+       /**
+        * Visitor handler instance
+        */
+       private $visitorInstance = null;
+
        /**
         * The real class name
         */
@@ -1618,6 +1628,44 @@ 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 visitor instance
+        *
+        * @param       $visitorInstance        A Visitor instance
+        * @return      void
+        */
+       protected final function setVisitorInstance (Visitor $visitorInstance) {
+               $this->visitorInstance = $visitorInstance;
+       }
+
+       /**
+        * Getter for visitor instance
+        *
+        * @return      $visitorInstance        A Visitor instance
+        */
+       protected final function getVisitorInstance () {
+               return $this->visitorInstance;
+       }
+
        /**
         * Setter for raw package Data
         *