]> 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 4844d0a40fe8cb030832331eee9374d151ca5723..ce6087e4f34ca1448352cc6511adf9c686bd35a9 100644 (file)
@@ -14,7 +14,7 @@ use \IteratorAggregate;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -41,11 +41,11 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
        function isGroupSet (string $groupName);
 
        /**
-        * Adds the given group or if already added issues a ListGroupAlreadyAddedException
+        * Adds the given group or if already added issues a BadMethodCallException
         *
         * @param       $groupName      Group to add
         * @return      void
-        * @throws      ListGroupAlreadyAddedException  If the given group is already added
+        * @throws      BadMethodCallException  If the given group is already added
         */
        function addGroup (string $groupName);
 
@@ -56,7 +56,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @param       $subGroup                       Sub group to add instance to
         * @param       $visitableInstance      An instance of Visitable
         * @return      void
-        * @throws      NoListGroupException    If the given group is not found
+        * @throws      BadMethodCallException  If the given group is not found
         */
        function addInstance (string $groupName, string $subGroup, Visitable $visitableInstance);
 
@@ -66,7 +66,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @param       $groupName      Group to add instance to
         * @param       $entry          An entry of any type
         * @return      void
-        * @throws      NoListGroupException    If the given group is not found
+        * @throws      BadMethodCallException  If the given group is not found
         */
        function addEntry (string $groupName, $entry);
 
@@ -78,7 +78,7 @@ interface Listable extends FrameworkInterface, IteratorAggregate {
         * @return      void
         * @throws      InvalidListHashException        If the solved hash index is invalid
         */
-       function updateCurrentEntryByHash ($hash, array $entryArray);
+       function updateCurrentEntryByHash (string $hash, array $entryArray);
 
        /**
         * "Getter" for an iterator instance of this list