From: Roland Häder Date: Mon, 2 Jun 2008 18:24:31 +0000 (+0000) Subject: Methods added to interface Register X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3e704f78e280e0eda545276c9458254da77d324;p=shipsimu.git Methods added to interface Register --- diff --git a/inc/classes/interfaces/registry/class_Register.php b/inc/classes/interfaces/registry/class_Register.php index 770755e..e391b28 100644 --- a/inc/classes/interfaces/registry/class_Register.php +++ b/inc/classes/interfaces/registry/class_Register.php @@ -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); +}