From: Roland Häder Date: Thu, 4 Feb 2010 23:35:05 +0000 (+0000) Subject: FIFO stacker basicly implemented X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11cbacb35e308a58c919b672b368780bd8f11661;p=core.git FIFO stacker basicly implemented --- diff --git a/inc/classes/main/stacker/fifo/class_FiFoStacker.php b/inc/classes/main/stacker/fifo/class_FiFoStacker.php index fa88aa99..01017706 100644 --- a/inc/classes/main/stacker/fifo/class_FiFoStacker.php +++ b/inc/classes/main/stacker/fifo/class_FiFoStacker.php @@ -57,7 +57,8 @@ class FiFoStacker extends BaseStacker implements Stackable { * @throws StackerFullException If the stack is full */ public function pushNamed ($stackerName, $value) { - $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value); + // Call the protected method + parent::addValue($stackerName, $value); } /** @@ -69,7 +70,8 @@ class FiFoStacker extends BaseStacker implements Stackable { * @throws EmptyStackerException If the named stacker is empty */ public function popNamed ($stackerName) { - $this->partialStub('stackerName=' . $stackerName); + // Call the protected method + parent::popFirst($stackerName); } /** @@ -81,7 +83,8 @@ class FiFoStacker extends BaseStacker implements Stackable { * @throws EmptyStackerException If the named stacker is empty */ public function getNamed ($stackerName) { - $this->partialStub('stackerName=' . $stackerName); + // Call the protected method + return parent::getLastValue($stackerName); } }