]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/iterator/pool/tasks/class_TaskPoolIterator.php
'public static final' is the right thing, some variables renamed to make clear what...
[hub.git] / application / hub / main / iterator / pool / tasks / class_TaskPoolIterator.php
index dff213860f70858eee30d91cefbe6ecf6e0129e3..bc129c14e6b1b7d6da047e8cd70fffe32f8a9ce1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  * @todo               This current implementation is not recommended, use a
@@ -42,10 +42,10 @@ class TaskPoolIterator extends BaseIterator implements Iterator {
        /**
         * Creates an instance of this class
         *
-        * @param       $listInstance           A list of a IteratorAggregate
+        * @param       $listInstance           A list of a Listable
         * @return      $iteratorInstance       An instance a Iterator class
         */
-       public final static function createTaskPoolIterator (IteratorAggregate $listInstance) {
+       public static final function createTaskPoolIterator (Listable $listInstance) {
                // Get new instance
                $iteratorInstance = new TaskPoolIterator();
 
@@ -112,7 +112,7 @@ class TaskPoolIterator extends BaseIterator implements Iterator {
         * @return      $isValid        Wether the current entry is there
         */
        public function valid () {
-               // Check for total active clients and if we are not at the end
+               // Check for total active peers and if we are not at the end
                $isValid = ($this->key() < $this->getListInstance()->count());
 
                // Return result