Added communicatorInstance from 'hub' project.
authorRoland Haeder <roland@mxchange.org>
Thu, 21 May 2015 01:44:38 +0000 (03:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 21 May 2015 01:44:38 +0000 (03:44 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/class_BaseFrameworkSystem.php

index 3f3e6f7..026a06b 100644 (file)
@@ -213,6 +213,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $listenerInstance = NULL;
 
+       /**
+        * An instance of a communicator
+        */
+       private $communicatorInstance = NULL;
+
        /**
         * Thousands separator
         */
@@ -1504,6 +1509,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->listenerInstance;
        }
 
+       /**
+        * Getter for communicator instance
+        *
+        * @return      $communicatorInstance   An instance of a Communicator class
+        */
+       public final function getCommunicatorInstance () {
+               return $this->communicatorInstance;
+       }
+
+       /**
+        * Setter for communicator instance
+        *
+        * @param       $communicatorInstance   An instance of a Communicator class
+        * @return      void
+        */
+       protected final function setCommunicatorInstance (Communicator $communicatorInstance) {
+               $this->communicatorInstance = $communicatorInstance;
+       }
+
        /**
         * Setter for command name
         *