Rewrote both interfaces to implement streamNetworkData()
authorRoland Häder <roland@mxchange.org>
Sun, 5 Aug 2012 00:08:46 +0000 (00:08 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 5 Aug 2012 00:08:46 +0000 (00:08 +0000)
inc/classes/interfaces/streams/input/class_InputStreamable.php
inc/classes/interfaces/streams/output/class_OutputStreamable.php

index a61fdf0..fdeb657 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-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]
index dc9b999..b2844b0 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-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]