]> git.mxchange.org Git - core.git/commitdiff
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 16c04ed9a653dc81955ce9997c3095f809381efa..0b5ce31099294001468444eda7f8daac25122f09 100644 (file)
@@ -74,10 +74,15 @@ 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
         */
@@ -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]