]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/compressor/class_Compressor.php
Continued:
[core.git] / framework / main / interfaces / compressor / class_Compressor.php
index 1f9270ad5683debe5faa6b702d162877fa10c216..fa289b894bde4896a6b388775566e3e872df3b0a 100644 (file)
@@ -10,7 +10,7 @@ use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -33,18 +33,18 @@ interface Compressor extends FrameworkInterface {
         *
         * @param       $streamData             Mixed non-object stream data
         * @return      $streamData             The compressed stream data
-        * @throws      InvalidObjectException  If the stream is an object
+        * @throws      InvalidArgumentException        If the stream is not compressable or decompressable
         */
-       function compressStream ($streamData);
+       function compressStream (string $streamData);
 
        /**
         * A decompression stream
         *
         * @param       $streamData             Mixed non-object stream data
         * @return      $streamData             The decompressed stream data
-        * @throws      InvalidObjectException  If the stream is an object
+        * @throws      InvalidArgumentException        If the stream is not compressable or decompressable
         */
-       function decompressStream ($streamData);
+       function decompressStream (string $streamData);
 
        /**
         * Getter for the file extension of this compressor