]> git.mxchange.org Git - shipsimu.git/commitdiff
Methods added to interface Register
authorRoland Häder <roland@mxchange.org>
Mon, 2 Jun 2008 18:24:31 +0000 (18:24 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 2 Jun 2008 18:24:31 +0000 (18:24 +0000)
inc/classes/interfaces/registry/class_Register.php

index 770755edbafd365c8ca42fb0e4a92af6795850f8..e391b28f24960f5ce6d476e5246b16bc4ab92601 100644 (file)
@@ -29,7 +29,21 @@ interface Register extends FrameworkInterface {
         * @return      $exists                 Wether the key exists in the registry
         */
        function instanceExists ($instanceKey);
-}
 
-//
-?>
+       /**
+        * Adds/overwrites a new instance to the registry at the given key
+        *
+        * @param       $instanceKey            The key to identify the instance
+        * @param       $objectInstance         An instance we shall store
+        * @return      void
+        */
+       function addInstance ($instanceKey, Registerable $objectInstance);
+
+       /**
+        * Gets a registered instance or null if not found
+        *
+        * @param       $instanceKey            The key to identify the instance
+        * @return      $objectInstance         An instance we shall store
+        */
+       function getInstance ($instanceKey);
+}