Moved from 'hub' code.
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index ae19aeb4938c66af993788a76cfbd9016413b6a0..b65564720e8eaa092f0bf3ad94d0f86d21355c94 100644 (file)
@@ -129,7 +129,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        private $parserInstance = NULL;
 
        /**
-        * A ProtocolHandler instance
+        * A HandleableProtocol instance
         */
        private $protocolInstance = NULL;
 
@@ -199,10 +199,15 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        private $minableInstance = NULL;
 
        /**
-        * A Directory instance
+        * A FrameworkDirectory instance
         */
        private $directoryInstance = NULL;
 
+       /**
+        * Listener instance
+        */
+       private $listenerInstance = NULL;
+
        /**
         * Thousands separator
         */
@@ -1018,19 +1023,19 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        }
 
        /**
-        * Setter for ProtocolHandler instance
+        * Setter for HandleableProtocol instance
         *
-        * @param       $protocolInstance       An instance of an ProtocolHandler
+        * @param       $protocolInstance       An instance of an HandleableProtocol
         * @return      void
         */
-       public final function setProtocolInstance (ProtocolHandler $protocolInstance = NULL) {
+       public final function setProtocolInstance (HandleableProtocol $protocolInstance = NULL) {
                $this->protocolInstance = $protocolInstance;
        }
 
        /**
-        * Getter for ProtocolHandler instance
+        * Getter for HandleableProtocol instance
         *
-        * @return      $protocolInstance       An instance of an ProtocolHandler
+        * @return      $protocolInstance       An instance of an HandleableProtocol
         */
        public final function getProtocolInstance () {
                return $this->protocolInstance;
@@ -1325,24 +1330,43 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        }
 
        /**
-        * Setter for Directory instance
+        * Setter for FrameworkDirectory instance
         *
         * @param       $directoryInstance      A FrameworkDirectoryPointer instance
         * @return      void
         */
-       protected final function setDirectoryInstance (Directory $directoryInstance) {
+       protected final function setDirectoryInstance (FrameworkDirectory $directoryInstance) {
                $this->directoryInstance = $directoryInstance;
        }
 
        /**
-        * Getter for directory instance
+        * Getter for FrameworkDirectory instance
         *
-        * @return      $directoryInstance      A Directory instance
+        * @return      $directoryInstance      A FrameworkDirectory instance
         */
        protected final function getDirectoryInstance () {
                return $this->directoryInstance;
        }
 
+       /**
+        * Setter for listener instance
+        *
+        * @param       $listenerInstance       A Listenable instance
+        * @return      void
+        */
+       protected final function setListenerInstance (Listenable $listenerInstance) {
+               $this->listenerInstance = $listenerInstance;
+       }
+
+       /**
+        * Getter for listener instance
+        *
+        * @return      $listenerInstance       A Listenable instance
+        */
+       protected final function getListenerInstance () {
+               return $this->listenerInstance;
+       }
+
        /**
         * Checks whether an object equals this object. You should overwrite this
         * method to implement own equality checks