]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/stacker/class_Stackable.php
Continued:
[core.git] / framework / main / interfaces / stacker / class_Stackable.php
index c2574b4b46c5faf68004f3e9c2df4db883c917fb..79199068ebbcbb32ee5efb0867be0ae8ef1d9d0c 100644 (file)
@@ -36,7 +36,7 @@ interface Stackable extends FrameworkInterface {
         * @return      void
         * @throws      StackerFullException    If the stacker is full
         */
-       function pushNamed ($stackerName, $value);
+       function pushNamed (string $stackerName, $value);
 
        /**
         * 'Pops' a value from a named stacker and returns it's value
@@ -46,7 +46,7 @@ interface Stackable extends FrameworkInterface {
         * @throws      NoStackerException      If the named stacker was not found
         * @throws      EmptyStackerException   If the named stacker is empty
         */
-       function popNamed ($stackerName);
+       function popNamed (string $stackerName);
 
        /**
         * Get value from named stacker but don't "pop" it
@@ -56,7 +56,7 @@ interface Stackable extends FrameworkInterface {
         * @throws      NoStackerException      If the named stacker was not found
         * @throws      EmptyStackerException   If the named stacker is empty
         */
-       function getNamed ($stackerName);
+       function getNamed (string $stackerName);
 
        /**
         * Checks whether the given stack is initialized (set in array $stackers)
@@ -64,7 +64,7 @@ interface Stackable extends FrameworkInterface {
         * @param       $stackerName    Name of the stack
         * @return      $isInitialized  Whether the stack is initialized
         */
-       function isStackInitialized ($stackerName);
+       function isStackInitialized (string $stackerName);
 
        /**
         * Checks whether the given stack is empty
@@ -73,6 +73,6 @@ interface Stackable extends FrameworkInterface {
         * @return      $isEmpty                        Whether the stack is empty
         * @throws      NoStackerException      If given stack is missing
         */
-       function isStackEmpty ($stackerName);
+       function isStackEmpty (string $stackerName);
 
 }