From: Roland Häder Date: Sat, 8 Aug 2009 19:12:21 +0000 (+0000) Subject: Iterator instance is now handled in BaseFrameworkSystem class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ea7c80cda1d4b8018ddc61a0d1a2f9e5eedbdf1;p=core.git Iterator instance is now handled in BaseFrameworkSystem class --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 16c04ed9..0b5ce310 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -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]