WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::getToAddresses() public WP 1.0

Allows for public read access to 'to' property. Before the send() call, queued addresses (i.e. with IDN) are not yet included.

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

No Hooks.

Return

Array.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->getToAddresses();

Code of PHPMailer::getToAddresses() WP 5.7.2

<?php
public function getToAddresses()
{
    return $this->to;
}