From f25daeb6fcd61e0ebd12dc45f228b426aa7f89d5 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 Jan 2015 23:18:52 +0100 Subject: [PATCH] Added isValidUnlByPackageData() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../handler/protocol/class_HandleableProtocol.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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] -- 2.30.2