]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/streams/crypto/null/class_NullCryptoStream.php
Continued:
[core.git] / framework / main / classes / streams / crypto / null / class_NullCryptoStream.php
index 8365c8d157a34347b05a8ef8e13581fb4617507a..ed7f37aa182dbc2db94611bfed75dc23fcb3ff26 100644 (file)
@@ -3,13 +3,14 @@
 namespace Org\Mxchange\CoreFramework\Stream\Crypto\Null;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Stream\Crypto\BaseCryptoStream;
 use Org\Mxchange\CoreFramework\Stream\Crypto\EncryptableStream;
 
 /**
- * A null-encryption stream does not encrypt anything but can be used if e.e.
- * mcrypt is not installed.
+ * A null-encryption stream does not encrypt anything but can be used if e.g.
+ * openssl is not installed.
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
@@ -87,7 +88,7 @@ class NullCryptoStream extends BaseCryptoStream implements EncryptableStream {
         */
        public function streamData (string $data) {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
-               throw new UnsupportedOperationException([$this, __FUNCTION__], self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }