2023-12-18 15:05:15 +01: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
|
|
|
|
*/
|
|
|
|
|
2024-03-25 06:41:22 +01:00
|
|
|
namespace App\Services\InboundMail;
|
2023-12-18 15:05:15 +01:00
|
|
|
|
|
|
|
use Illuminate\Http\UploadedFile;
|
2024-03-18 08:04:54 +01:00
|
|
|
use Illuminate\Support\Carbon;
|
2023-12-18 15:05:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* EmailObject.
|
|
|
|
*/
|
2024-03-25 06:41:22 +01:00
|
|
|
class InboundMail
|
2023-12-18 15:05:15 +01:00
|
|
|
{
|
2024-03-18 08:04:54 +01:00
|
|
|
public string $to;
|
2023-12-18 15:05:15 +01:00
|
|
|
|
|
|
|
public string $from;
|
|
|
|
|
|
|
|
public ?string $subject = null;
|
|
|
|
|
|
|
|
public ?string $body = null;
|
2024-03-19 07:39:35 +01:00
|
|
|
public ?UploadedFile $body_document = null;
|
2023-12-18 15:05:15 +01:00
|
|
|
|
|
|
|
public string $text_body;
|
|
|
|
|
|
|
|
/** @var array[\Illuminate\Http\UploadedFile] $documents */
|
|
|
|
public array $documents = [];
|
|
|
|
|
2024-03-18 08:04:54 +01:00
|
|
|
public ?Carbon $date = null;
|
2023-12-18 15:05:15 +01:00
|
|
|
|
|
|
|
function __constructor()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|