FIFO stacker basicly implemented
[core.git] / inc / classes / main / stacker / fifo / class_FiFoStacker.php
index fa88aa9943747f2dd8c00ab540f297416a799211..010177065feeea2bf69a5e4ae70f5473d49033bb 100644 (file)
@@ -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);
        }
 }