PHPMailer\PHPMailer
OAuth::__construct
OAuth constructor.
Метод класса: OAuth{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$OAuth = new OAuth(); $OAuth->__construct( $options );
- $options(массив) (обязательный)
- Associative array containing
provider,userName,clientSecret,clientIdandrefreshTokenelements.
Код OAuth::__construct() OAuth:: construct WP 7.1.3
public function __construct($options)
{
$this->provider = $options['provider'];
$this->oauthUserEmail = $options['userName'];
$this->oauthClientSecret = $options['clientSecret'];
$this->oauthClientId = $options['clientId'];
$this->oauthRefreshToken = $options['refreshToken'];
}