Iterator instance is now handled in BaseFrameworkSystem class
authorRoland Häder <roland@mxchange.org>
Sat, 8 Aug 2009 19:12:21 +0000 (19:12 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 8 Aug 2009 19:12:21 +0000 (19:12 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 16c04ed..0b5ce31 100644 (file)
@@ -74,11 +74,16 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        private $controllerInstance = null;
 
        /**
-        * Instance of an RNG
+        * Instance of a RNG
         */
        private $rngInstance = null;
 
        /**
+        * Instance of an Iterator class
+        */
+       private $iteratorInstance = null;
+
+       /**
         * The real class name
         */
        private $realClass      = 'BaseFrameworkSystem';
@@ -1164,6 +1169,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        public final function getRngInstance () {
                return $this->rngInstance;
        }
+
+       /**
+        * Setter for Iterator instance
+        *
+        * @param       $iteratorInstance       An instance of an Iterator
+        * @return      void
+        */
+       protected final function setIteratorInstance (Iterator $iteratorInstance) {
+               $this->iteratorInstance = $iteratorInstance;
+       }
+
+       /**
+        * Getter for Iterator instance
+        *
+        * @return      $iteratorInstance       An instance of an Iterator
+        */
+       public final function getIteratorInstance () {
+               return $this->iteratorInstance;
+       }
 }
 
 // [EOF]