From: Roland Haeder Date: Thu, 15 Jan 2015 22:18:52 +0000 (+0100) Subject: Added isValidUnlByPackageData() X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=f25daeb6fcd61e0ebd12dc45f228b426aa7f89d5 Added isValidUnlByPackageData() Signed-off-by: Roland Häder --- diff --git a/inc/classes/interfaces/handler/protocol/class_HandleableProtocol.php b/inc/classes/interfaces/handler/protocol/class_HandleableProtocol.php index 8cfe6d60..aa22a72b 100644 --- a/inc/classes/interfaces/handler/protocol/class_HandleableProtocol.php +++ b/inc/classes/interfaces/handler/protocol/class_HandleableProtocol.php @@ -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]