]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/resolver/class_ProtocolResolver.php
Continued rewriting:
[hub.git] / application / hub / interfaces / resolver / class_ProtocolResolver.php
index 84bc584c92a0b6dc8baaaddd71ac77b73aa87698..d33a492335b322ad264763b088a90e45717a038d 100644 (file)
@@ -1,4 +1,4 @@
-OS<?php
+<?php
 /**
  * An interface for ProtocolResolvers
  *
@@ -23,13 +23,21 @@ OS<?php
  */
 interface ProtocolResolver extends FrameworkInterface {
        /**
-        * Returns an command instance for a given NodeHelper instance or null if it
-        * was not found.
+        * Returns an instance of a LocateableNode class for a given NodeHelper
+        * instance or null if it was not found.
         *
         * @param       $nodeInstance   An instance of a NodeHelper class
         * @return      $unlInstance    An instance of a LocateableNode class
         */
-       function resolveUniversalResourceLocatorFromNodeHelper (NodeHelper $nodeInstance);
+       function resolveUniversalNodeLocatorFromNodeHelper (NodeHelper $nodeInstance);
+
+       /**
+        * Returns the UNL as string from given configuration key.
+        *
+        * @param       $configKey      Configuration key for UNL address (valid: internal,external)
+        * @return      $unl            Universal node locator
+        */
+       function resolveUniversalNodeLocatorFromConfigKey ($configKey);
 }
 
 // [EOF]