public function OAuth::__construct

5.x OAuth.php public OAuth::__construct($options)

OAuth constructor.

Parameters

array $options Associative array containing: `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements

File

inc/PHPMailer/src/OAuth.php, line 86

Class

OAuth
OAuth - OAuth2 authentication wrapper class. Uses the oauth2-client package from the League of Extraordinary Packages.

Namespace

PHPMailer\PHPMailer

Code

public function __construct($options) 
 {
  $this->provider = $options ['provider'];
  $this->oauthUserEmail = $options ['userName'];
  $this->oauthClientSecret = $options ['clientSecret'];
  $this->oauthClientId = $options ['clientId'];
  $this->oauthRefreshToken = $options ['refreshToken'];
}