X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fiterator%2Fnetwork%2Fclass_NetworkListenIterator.php;h=dcf83cb03e55e1ee538b0cc69433384b35ed9dd3;hb=dfe38c5c2ff89adebea4f61364eb556a83da35a3;hp=62640bd0134fe8fbf18a72739362cbaac0911098;hpb=4dfbbe06642a017594f132bd2bdea5fcf9c21c74;p=hub.git diff --git a/application/hub/main/iterator/network/class_NetworkListenIterator.php b/application/hub/main/iterator/network/class_NetworkListenIterator.php index 62640bd01..dcf83cb03 100644 --- a/application/hub/main/iterator/network/class_NetworkListenIterator.php +++ b/application/hub/main/iterator/network/class_NetworkListenIterator.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 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 NetworkListenIterator 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 createNetworkListenIterator (IteratorAggregate $listInstance) { + public static final function createNetworkListenIterator (Listable $listInstance) { // Get new instance $iteratorInstance = new NetworkListenIterator(); @@ -64,7 +64,7 @@ class NetworkListenIterator extends BaseIterator implements Iterator { */ public function current () { // Default is null - $current = null; + $current = NULL; // Is the entry valid? if (!$this->valid()) { @@ -107,12 +107,12 @@ class NetworkListenIterator extends BaseIterator implements Iterator { } /** - * Checks wether the current entry is valid (not at the end of the list) + * Checks whether the current entry is valid (not at the end of the list) * - * @return $isValid Wether the current entry is there + * @return $isValid Whether 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