Vendor/langcode-conv/zendframework/zend-filter/src/Encrypt/BlockCipher.php
public function setKey($key)
    {
        try {
            $this->blockCipher->setKey($key);
        } catch (CryptException\InvalidArgumentException $e) {
            throw new Exception\InvalidArgumentException($e->getMessage());
        }
        $this->encryption['key'] = $key;
        return $this;
    }
public function setKey($key)
    {
        try {
            $this->blockCipher->setKey($key);
        } catch (CryptException\InvalidArgumentException $e) {
            throw new Exception\InvalidArgumentException($e->getMessage());
        }
        $this->encryption['key'] = $key;
        return $this;
    }
public function setKey ( $ key ) { try { $ this -> blockCipher -> setKey ( $ key ) ; } catch ( CryptException \ InvalidArgumentException $ e ) { throw new Exception \ InvalidArgumentException ( $ e -> getMessage ( ) ) ; } $ this -> encryption [ 'key' ] = $ key ; return $ this ; }
Set the encryption key

@param  string $key
@return self
@throws Exception\InvalidArgumentException
Set the encryption key