]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/lists/class_Listable.php
Continued:
[core.git] / framework / main / interfaces / lists / class_Listable.php
index 5eb15229b37a17e92df967ea1a1feb2deac18abf..4844d0a40fe8cb030832331eee9374d151ca5723 100644 (file)
@@ -38,7 +38,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @param       $groupName      Group to check if found in list
         * @return      $isset          Whether the group is valid
         */
-       function isGroupSet ($groupName);
+       function isGroupSet (string $groupName);
 
        /**
         * Adds the given group or if already added issues a ListGroupAlreadyAddedException
@@ -47,7 +47,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @return      void
         * @throws      ListGroupAlreadyAddedException  If the given group is already added
         */
-       function addGroup ($groupName);
+       function addGroup (string $groupName);
 
        /**
         * Adds the given instance to list group and sub group
@@ -58,7 +58,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @return      void
         * @throws      NoListGroupException    If the given group is not found
         */
-       function addInstance ($groupName, $subGroup, Visitable $visitableInstance);
+       function addInstance (string $groupName, string $subGroup, Visitable $visitableInstance);
 
        /**
         * Adds the given entry to list group
@@ -68,7 +68,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @return      void
         * @throws      NoListGroupException    If the given group is not found
         */
-       function addEntry ($groupName, $entry);
+       function addEntry (string $groupName, $entry);
 
        /**
         * Updates the given entry by hash with given array