public function cryptedConnection(EncryptionKey $key, string $name = null): EncryptionWrapper
    {
        return new EncryptionWrapper($this->getConnection($name), $key);
    }
public function cryptedConnection(EncryptionKey $key, string $name = null): EncryptionWrapper
    {
        return new EncryptionWrapper($this->getConnection($name), $key);
    }
public function cryptedConnection ( EncryptionKey $ key , string $ name = null ) : EncryptionWrapper { return new EncryptionWrapper ( $ this -> getConnection ( $ name ) , $ key ) ; }
Get a crypted aware connection instance.

@param \ParagonIE\Halite\Symmetric\EncryptionKey $key
@param null|string                               $name

@return \Viserio\Component\Filesystem\Encryption\EncryptionWrapper
Get a crypted aware connection instance .