]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/registry/class_Register.php
Continued:
[core.git] / framework / main / interfaces / registry / class_Register.php
index 03622cd95a366d135b39efcd030c7ba7f1b323dd..26b5ef481f9cc4aed1acd2b9e056956666dc119c 100644 (file)
@@ -34,7 +34,7 @@ interface Register extends FrameworkInterface {
         * @param       $instanceKey    The key holding an instance in registry
         * @return      $exists                 Whether the key exists in registry
         */
-       function instanceExists ($instanceKey);
+       function instanceExists (string $instanceKey);
 
        /**
         * Adds/overwrites a new instance to the registry at the given key
@@ -43,7 +43,7 @@ interface Register extends FrameworkInterface {
         * @param       $objectInstance         An instance we shall store
         * @return      void
         */
-       function addInstance ($instanceKey, Registerable $objectInstance);
+       function addInstance (string $instanceKey, Registerable $objectInstance);
 
        /**
         * Getter for whole generic registry
@@ -67,14 +67,14 @@ interface Register extends FrameworkInterface {
         * @param       $value  The value to be stored
         * @return      void
         */
-       function addEntry ($key, $value);
+       function addEntry (string $key, $value);
 
        /**
         * Getter for entries or "sub entries"
         *
         * @return      $entries        An array with entries from this registry
         */
-       function getEntries ($key = NULL);
+       function getEntries (string $key = NULL);
 
        /**
         * "Getter" for an array of all entries for given key
@@ -83,7 +83,7 @@ interface Register extends FrameworkInterface {
         * @param       $lookFor        The key to look for
         * @return      $entry          An array with all keys
         */
-       function getArrayFromKey ($arrayKey, $lookFor);
+       function getArrayFromKey (string $arrayKey, string $lookFor);
 
        /**
         * Gets a registered instance or null if not found
@@ -92,6 +92,6 @@ interface Register extends FrameworkInterface {
         * @return      $objectInstance         An instance we shall store
         * @throws      NullPointerException    If the requested key is not found
         */
-       function getInstance ($instanceKey);
+       function getInstance (string $instanceKey);
 
 }