ParagonIE\GPGMailer\GPGMailer::__construct PHP Method

__construct() public method

GPGMailer constructor.
public __construct ( TransportInterface $transport, array $options = [], string $serverKey = '' )
$transport TransportInterface
$options array For Crypt_GPG
$serverKey string
    public function __construct(TransportInterface $transport, array $options = [], string $serverKey = '')
    {
        $this->mailer = $transport;
        $this->options = $options;
        if (!empty($serverKey)) {
            $this->serverKeyFingerprint = $this->import($serverKey);
        }
    }