WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::setOAuth() public WP 1.0

Set an OAuth instance.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->setOAuth( $oauth );
$oauth(OAuth) (required)
-

Code of PHPMailer::setOAuth() WP 5.7.2

<?php
public function setOAuth(OAuth $oauth)
{
    $this->oauth = $oauth;
}