]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/stacker/filo/class_FiLoStacker.php
Continued:
[core.git] / framework / main / classes / stacker / filo / class_FiLoStacker.php
index 4b8237df4514910e877b21b7f8aa5b8ba1c2d72d..d48f0f5d091ed5b3de1758bcf3cf8bf01e1baefa 100644 (file)
@@ -59,7 +59,7 @@ class FiLoStacker extends BaseStacker implements Stackable {
         * @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);
        }
@@ -70,9 +70,9 @@ class FiLoStacker extends BaseStacker implements Stackable {
         * @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);
 
@@ -89,9 +89,9 @@ class FiLoStacker extends BaseStacker implements Stackable {
         * @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::getLastValue($stackerName);
        }