]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/stacker/fifo/class_FiFoStacker.php
Opps...
[core.git] / inc / classes / main / stacker / fifo / class_FiFoStacker.php
index 8df19e36a602af95fabb98d70a433306c215545f..d1ed904e0ad23cf8e430a052d2627be7b91def2f 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, 2010 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -62,16 +62,22 @@ class FiFoStacker extends BaseStacker implements Stackable {
        }
 
        /**
-        * 'Pops' a value from a named stacker
+        * 'Pops' a value from a named stacker and returns it's value
         *
         * @param       $stackerName    Name of the stack
-        * @return      void
+        * @return      $value                  Value of the current stack entry
         * @throws      NoStackerException      If the named stacker was not found
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function popNamed ($stackerName) {
+               // Get the value
+               $value = $this->getNamed($stackerName);
+
                // Call the protected method
                parent::popFirst($stackerName);
+
+               // Return the value
+               return $value;
        }
 
        /**