]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/stacker/file/fifo/class_FiFoFileStack.php
Continued:
[core.git] / framework / main / classes / stacker / file / fifo / class_FiFoFileStack.php
index 57c69249745194f68ac0b05fe311c94b0d03748d..466c7e1c8df645686cef4c6891bbb28a1d74f36e 100644 (file)
@@ -70,7 +70,7 @@ class FiFoFileStack extends BaseFileStack implements StackableFile, Calculatable
         * @return      void
         * @throws      StackerFullException    If the stack is full
         */
-       public function pushNamed ($stackerName, $value) {
+       public function pushNamed (string $stackerName, $value) {
                // Call the protected method
                parent::addValue($stackerName, $value);
        }
@@ -81,9 +81,9 @@ class FiFoFileStack extends BaseFileStack implements StackableFile, Calculatable
         * @param       $stackerName    Name of the stack
         * @return      $value                  Value of the current stack entry
         * @throws      BadMethodCallException  If the named stacker was not found
-        * @throws      EmptyStackerException   If the named stacker is empty
+        * @throws      BadMethodCallException  If the named stacker is empty
         */
-       public function popNamed ($stackerName) {
+       public function popNamed (string $stackerName) {
                // Get the value
                $value = $this->getNamed($stackerName);
 
@@ -100,9 +100,9 @@ class FiFoFileStack extends BaseFileStack implements StackableFile, Calculatable
         * @param       $stackerName    Name of the stack
         * @return      $value                  Value of last added value
         * @throws      BadMethodCallException  If the named stacker was not found
-        * @throws      EmptyStackerException   If the named stacker is empty
+        * @throws      BadMethodCallException  If the named stacker is empty
         */
-       public function getNamed ($stackerName) {
+       public function getNamed (string $stackerName) {
                // Call the protected method
                return parent::getFirstValue($stackerName);
        }