]> git.mxchange.org Git - core.git/blobdiff - framework/main/middleware/class_BaseMiddleware.php
Continued:
[core.git] / framework / main / middleware / class_BaseMiddleware.php
index 8c47444eac94130687f6c9d7a6aafdf71464825b..257bb3fa4164c29e29d321d99219d599a4f21d64 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Middleware;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * An abstract middleware class for all other middlware classes
@@ -28,6 +29,11 @@ use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseMiddleware extends BaseFrameworkSystem {
+       /**
+        * The concrete output instance
+        */
+       private $outputInstance = NULL;
+
        /**
         * Protected constructor
         *
@@ -39,4 +45,23 @@ abstract class BaseMiddleware extends BaseFrameworkSystem {
                parent::__construct($className);
        }
 
+       /**
+        * Setter for output instance
+        *
+        * @param       $outputInstance The debug output instance
+        * @return      void
+        */
+       protected final function setOutputInstance (OutputStreamer $outputInstance) {
+               $this->outputInstance = $outputInstance;
+       }
+
+       /**
+        * Getter for output instance
+        *
+        * @return      $outputInstance The debug output instance
+        */
+       protected final function getOutputInstance () {
+               return $this->outputInstance;
+       }
+
 }