invoiceninja/app/Services/Email/MailObject.php

90 lines
1.7 KiB
PHP
Raw Normal View History

2023-02-13 21:09:19 +11:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Services\Email;
2023-02-14 21:04:07 +11:00
use App\Models\Company;
2023-02-13 21:09:19 +11:00
use Illuminate\Mail\Mailables\Address;
/**
* MailObject.
*/
class MailObject
{
2023-02-16 12:36:09 +11:00
public ?string $db = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $to = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?Address $from = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $reply_to = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $cc = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $bcc = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $subject = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $body = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $attachments = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $attachment_links = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public string $company_key;
2023-02-15 00:01:55 +11:00
2023-02-16 12:36:09 +11:00
public ?object $settings = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public bool $whitelabel = false;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $logo = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $signature = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $greeting = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?int $client_id = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?int $vendor_id = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?int $user_id = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?int $client_contact_id = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?int $vendor_contact_id = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $email_template = null; //this defines the template in short notation WITH the email_template prefix
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $html_template = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $text_template = 'email.template.text';
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $headers = [];
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $invitation_key = null;
public ?int $entity_id = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $entity_class = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public ?string $entity_string = null;
2023-02-13 21:09:19 +11:00
2023-02-16 12:36:09 +11:00
public array $variables = [];
public ?string $template = null;
2023-02-15 11:04:47 +11:00
2023-02-16 12:36:09 +11:00
public ?string $template_data = null;
2023-02-14 10:03:54 +11:00
2023-02-16 12:36:09 +11:00
public bool $override = false;
2023-02-14 10:03:54 +11:00
2023-02-16 12:36:09 +11:00
public ?Company $company = null;
}