public function import(string $gpgKey): string
    {
        try {
            $gnupg = new \Crypt_GPG($this->options);
            /** @var array<string, string> $data */
            $data = $gnupg->importKey($gpgKey);

            return $data['fingerprint'];
        } catch (\PEAR_Exception $ex) {
            throw new GPGMailerException(
                'Could not import public key: ' . $ex->getMessage(),
                $ex->getCode(),
                $ex
            );
        }
    }
public function import(string $gpgKey): string
    {
        try {
            $gnupg = new \Crypt_GPG($this->options);
            /** @var array<string, string> $data */
            $data = $gnupg->importKey($gpgKey);

            return $data['fingerprint'];
        } catch (\PEAR_Exception $ex) {
            throw new GPGMailerException(
                'Could not import public key: ' . $ex->getMessage(),
                $ex->getCode(),
                $ex
            );
        }
    }
public function import ( string $ gpgKey ) : string { try { $ gnupg = new \ Crypt_GPG ( $ this -> options ) ; /** @var array<string, string> $data */ $ data = $ gnupg -> importKey ( $ gpgKey ) ; return $ data [ 'fingerprint' ] ; } catch ( \ PEAR_Exception $ ex ) { throw new GPGMailerException ( 'Could not import public key: ' . $ ex -> getMessage ( ) , $ ex -> getCode ( ) , $ ex ) ; } }
Import a public key, return the fingerprint

@param string $gpgKey An ASCII armored public key
@return string The GPG fingerprint for this key
@throws GPGMailerException
Import a public key return the fingerprint