WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::getAttachments() public WP 1.0

Return the array of attachments.

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

No Hooks.

Return

Array.

Usage

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

Code of PHPMailer::getAttachments() WP 5.7.2

<?php
public function getAttachments()
{
    return $this->attachment;
}