1, 'name' => 'example.docx'] * ['submissionFileId' => 2, 'name' => 'other.pdf'] * ] * * @param array[] */ public array $attachments = []; /** * The locale of the email */ public ?string $locale = null; /** * Instantiate an object from an assoc array of request data * * @param array $args [ */ public function __construct(array $args = []) { foreach ($args as $key => $value) { if (property_exists(EmailData::class, $key)) { $this->{$key} = $value; } } } }