Added isValidUnlByPackageData()
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Jan 2015 22:18:52 +0000 (23:18 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Jan 2015 22:18:52 +0000 (23:18 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/interfaces/handler/protocol/class_HandleableProtocol.php

index 8cfe6d6..aa22a72 100644 (file)
@@ -35,6 +35,15 @@ interface HandleableProtocol extends Handleable {
         * @return      $protocol       Name of used protocol
         */
        function getProtocolName ();
+
+       /**
+        * Validates given 'recipient' if it is a valid UNL. This means that the UNL
+        * can be parsed by the protocol handler.
+        *
+        * @param       $packageData    Valid raw package data
+        * @return      $isValid                Whether the UNL can be validated
+        */
+       function isValidUnlByPackageData (array $packageData);
 }
 
 // [EOF]