1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Services/Email/EmailObject.php

85 lines
1.6 KiB
PHP
Raw Normal View History

2023-01-15 04:44:23 +01:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-28 23:21:40 +01:00
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
2023-01-15 04:44:23 +01:00
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Services\Email;
2023-02-17 22:06:53 +01:00
use App\Models\Client;
use App\Models\ClientContact;
2023-02-17 22:36:51 +01:00
use App\Models\Company;
use App\Models\User;
use App\Models\Vendor;
2023-01-15 04:44:23 +01:00
use App\Models\VendorContact;
use Illuminate\Mail\Mailables\Address;
/**
* EmailObject.
*/
class EmailObject
{
2023-02-16 02:36:09 +01:00
public array $to = [];
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?Address $from = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public array $reply_to = [];
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public array $cc = [];
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public array $bcc = [];
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $subject = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $body = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public array $attachments = [];
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public string $company_key;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?object $settings = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public bool $whitelabel = false;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $logo = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $signature = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $greeting = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?Client $client = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?Vendor $vendor = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?User $user = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?ClientContact $client_contact = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?VendorContact $vendor_contact = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $email_template_body = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $email_template_subject = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $html_template = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $text_template = 'email.template.text';
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public array $headers = [];
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $invitation_key = null;
public ?int $entity_id = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public ?string $entity_class = null;
2023-01-15 04:44:23 +01:00
2023-02-16 02:36:09 +01:00
public array $variables = [];
2023-02-17 22:06:53 +01:00
public ?Company $company = null;
2023-02-16 02:36:09 +01:00
}