X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstacker%2Ffilo%2Fclass_FiLoStacker.php;h=81604945e974d2e91342d7e560bf7c9543569cc1;hp=1d2d94afe7c5326c94c6e39ceaabe513e2c3d3b0;hb=3ccc1cf129da7478efaf565981dc06e8dd615590;hpb=ae54dca581224b5fd6da5f90bb32f07eec43845e diff --git a/inc/classes/main/stacker/filo/class_FiLoStacker.php b/inc/classes/main/stacker/filo/class_FiLoStacker.php index 1d2d94af..81604945 100644 --- a/inc/classes/main/stacker/filo/class_FiLoStacker.php +++ b/inc/classes/main/stacker/filo/class_FiLoStacker.php @@ -62,16 +62,22 @@ class FiLoStacker 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::popLast($stackerName); + + // Return the value + return $value; } /**