]> git.mxchange.org Git - core.git/commitdiff
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 a61fdf0ac66b9fa8f27c97307b4dd565464a089b..fdeb6573928e89b741b4d7342e23d760cac3889b 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 dc9b9995b1c970a00278039c01edfc75da880f1f..b2844b03d8542998e6e99ed1ae6b2023093cbbd9 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]