Added setter/getter for I/O streams
authorRoland Häder <roland@mxchange.org>
Thu, 14 Apr 2011 20:52:26 +0000 (20:52 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 14 Apr 2011 20:52:26 +0000 (20:52 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index eed9851..7381073 100644 (file)
@@ -134,10 +134,20 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        private $helperInstance = null;
 
        /**
-        * An instance of a source
+        * An instance of a Sourceable class
         */
        private $sourceInstance = null;
 
+       /**
+        * An instance of a InputStreamable class
+        */
+       private $inputStreamInstance = null;
+
+       /**
+        * An instance of a OutputStreamable class
+        */
+       private $outputStreamInstance = null;
+
        /**
         * The real class name
         */
@@ -166,6 +176,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /***********************
         * Exception codes.... *
         ***********************/
+
        // @todo Try to clean these constants up
        const EXCEPTION_IS_NULL_POINTER              = 0x001;
        const EXCEPTION_IS_NO_OBJECT                 = 0x002;
@@ -1565,12 +1576,41 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        }
 
        /**
-        * Getter for a Sourceable instance
+        * Getter for a InputStreamable instance
         *
-        * @param       $sourceInstance The Sourceable instance
+        * @param       $inputStreamInstance    The InputStreamable instance
+        */
+       protected final function getInputStreamInstance () {
+               return $this->inputStreamInstance;
+       }
+
+       /**
+        * Setter for a InputStreamable instance
+        *
+        * @param       $inputStreamInstance    The InputStreamable instance
+        * @return      void
+        */
+       protected final function setInputStreamInstance (InputStreamable $inputStreamInstance) {
+               $this->inputStreamInstance = $inputStreamInstance;
+       }
+
+       /**
+        * Getter for a OutputStreamable instance
+        *
+        * @param       $outputStreamInstance   The OutputStreamable instance
+        */
+       protected final function getOutputStreamInstance () {
+               return $this->outputStreamInstance;
+       }
+
+       /**
+        * Setter for a OutputStreamable instance
+        *
+        * @param       $outputStreamInstance   The OutputStreamable instance
+        * @return      void
         */
-       protected final function getSourceInstance () {
-               return $this->sourceInstance;
+       protected final function setOutputStreamInstance (OutputStreamable $outputStreamInstance) {
+               $this->outputStreamInstance = $outputStreamInstance;
        }
 
        /**