]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/class_BaseListener.php
Network package handling added (unfinished)
[hub.git] / application / hub / main / listener / class_BaseListener.php
index c53d81e91569f522f90bd6dd9212bdbaebf33166..8b28acd0c16b4fc2c252463792c0b093c7c57de5 100644 (file)
@@ -55,6 +55,11 @@ class BaseListener extends BaseHubSystem implements Visitable {
         */
        private $poolInstance = null;
 
+       /**
+        * A network package handler instance
+        */
+       private $packageInstance = null;
+
        /**
         * Protected constructor
         *
@@ -200,6 +205,25 @@ class BaseListener extends BaseHubSystem implements Visitable {
                return $this->poolInstance;
        }
 
+       /**
+        * Setter for network package handler instance
+        *
+        * @param       $packageInstance        The network package handler instance we shall set
+        * @return      void
+        */
+       protected final function setPackageInstance (Networkable $packageInstance) {
+               $this->packageInstance = $packageInstance;
+       }
+
+       /**
+        * Getter for network package handler instance
+        *
+        * @return      $packageInstance        The network package handler instance we shall set
+        */
+       protected final function getPackageInstance () {
+               return $this->packageInstance;
+       }
+
        /**
         * Accepts the visitor to rpocess the visit "request"
         *