From: Roland Häder Date: Sun, 5 Aug 2012 00:08:46 +0000 (+0000) Subject: Rewrote both interfaces to implement streamNetworkData() X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=b080b8a445af97f1e7db08d70a762737296fb6a5 Rewrote both interfaces to implement streamNetworkData() --- 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]