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
|
|
|
|
|
|
|
/**
|
2024-08-29 08:57:16 +02:00
|
|
|
* InboundMail.
|
2023-12-18 15:05:15 +01:00
|
|
|
*/
|
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;
|
|
|
|
|
2024-09-15 09:32:43 +02:00
|
|
|
/** @var array[?\Illuminate\Http\UploadedFile] $documents */
|
2023-12-18 15:05:15 +01:00
|
|
|
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()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|