PHPMailer\PHPMailer\OAuth::__construct PHP Метод

__construct() публичный Метод

OAuth constructor.
public __construct ( array $options )
$options array Associative array containing `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements
    public function __construct($options)
    {
        $this->provider = $options['provider'];
        $this->oauthUserEmail = $options['userName'];
        $this->oauthClientSecret = $options['clientSecret'];
        $this->oauthClientId = $options['clientId'];
        $this->oauthRefreshToken = $options['refreshToken'];
    }