* @param $key Optional key, if none provided, a random key will be generated
* @return $encrypted Encrypted string
*/
- public function encryptStream ($str, $key = NULL) {
+ public function encryptStream (string $str, string $key = NULL) {
// @TODO unfinished
return $str;
* @param $key Optional key, if none provided, a random key will be generated
* @return $str The unencrypted string
*/
- public function decryptStream ($encrypted, $key = NULL) {
+ public function decryptStream (string $encrypted, string $key = NULL) {
// @TODO unfinished
return $encrypted;