<?php
declare(strict_types=1);

namespace FreshCloud\Mail\MimeParser;

use FreshCloud\Mail\BaseUtils\EmailAddress;

final readonly class ParsedMessage
{
    public function __construct(
        public string $subject,
        public EmailAddress $from,
        public array $to,
        public array $cc = [],
        public ?\DateTimeImmutable $date = null,
        public ?string $messageId = null,
        public ?string $textBody = null,
        public ?string $htmlBody = null,
        public array $attachments = [],
        public array $headers = [],
    ) {
    }
}
