From: Roland Häder Date: Sun, 22 Apr 2012 20:05:14 +0000 (+0000) Subject: Added method stubs to satisfy interface X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=98465157d09c667ac58626cc7d9a12823a678799 Added method stubs to satisfy interface --- diff --git a/inc/classes/main/debug/class_DebugErrorLogOutput.php b/inc/classes/main/debug/class_DebugErrorLogOutput.php index 3fa1f719..9c741375 100644 --- a/inc/classes/main/debug/class_DebugErrorLogOutput.php +++ b/inc/classes/main/debug/class_DebugErrorLogOutput.php @@ -79,6 +79,18 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu $this->outputStream($outStream); } } + + /** + * Streams the data and maybe does something to it + * + * @param $data The data (string mostly) to "stream" + * @return $data The data (string mostly) to "stream" + * @throws UnsupportedOperationException If this method is called + */ + public function streamData ($data) { + $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); + } } // [EOF] diff --git a/inc/classes/main/debug/class_DebugWebOutput.php b/inc/classes/main/debug/class_DebugWebOutput.php index b7ac4f0a..b70ca337 100644 --- a/inc/classes/main/debug/class_DebugWebOutput.php +++ b/inc/classes/main/debug/class_DebugWebOutput.php @@ -68,6 +68,18 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre $this->outputStream($outStream); } } + + /** + * Streams the data and maybe does something to it + * + * @param $data The data (string mostly) to "stream" + * @return $data The data (string mostly) to "stream" + * @throws UnsupportedOperationException If this method is called + */ + public function streamData ($data) { + $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); + } } // [EOF]