From b080b8a445af97f1e7db08d70a762737296fb6a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 5 Aug 2012 00:08:46 +0000 Subject: [PATCH] Rewrote both interfaces to implement streamNetworkData() --- .../interfaces/streams/input/class_InputStreamable.php | 10 +++++++++- .../streams/output/class_OutputStreamable.php | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/inc/classes/interfaces/streams/input/class_InputStreamable.php b/inc/classes/interfaces/streams/input/class_InputStreamable.php index a61fdf0a..fdeb6573 100644 --- a/inc/classes/interfaces/streams/input/class_InputStreamable.php +++ b/inc/classes/interfaces/streams/input/class_InputStreamable.php @@ -21,7 +21,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -interface InputStreamable extends Streamable { +interface InputStreamable extends FrameworkInterface { + /** + * Streams the data and maybe does something to it + * + * @param $data The data (string mostly) to "stream" + * @param $handlerInstance An instance of a Networkable class + * @return $data The data (string mostly) to "stream" + */ + function streamNetworkData ($data, Networkable $handlerInstance); } // [EOF] diff --git a/inc/classes/interfaces/streams/output/class_OutputStreamable.php b/inc/classes/interfaces/streams/output/class_OutputStreamable.php index dc9b9995..b2844b03 100644 --- a/inc/classes/interfaces/streams/output/class_OutputStreamable.php +++ b/inc/classes/interfaces/streams/output/class_OutputStreamable.php @@ -21,7 +21,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -interface OutputStreamable extends Streamable { +interface OutputStreamable extends FrameworkInterface { + /** + * Streams the data and maybe does something to it + * + * @param $data The data (string mostly) to "stream" + * @param $handlerInstance An instance of a Networkable class + * @return $data The data (string mostly) to "stream" + */ + function streamNetworkData ($data, Networkable $handlerInstance); } // [EOF] -- 2.30.2