X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fstacker%2Fclass_Stackable.php;h=79199068ebbcbb32ee5efb0867be0ae8ef1d9d0c;hb=3b182d1633e936618e118773da67fa41b24a6109;hp=c2574b4b46c5faf68004f3e9c2df4db883c917fb;hpb=84ca76444c3cc19221f5a4414b10b48e5bb14b76;p=core.git diff --git a/framework/main/interfaces/stacker/class_Stackable.php b/framework/main/interfaces/stacker/class_Stackable.php index c2574b4b..79199068 100644 --- a/framework/main/interfaces/stacker/class_Stackable.php +++ b/framework/main/interfaces/stacker/class_Stackable.php @@ -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); }