HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/slfopp7cb1df/www/home/wp-content/plugins/mailoptin/src/core/src/Logging/CampaignLog.php
<?php

namespace MailOptin\Core\Logging;

class CampaignLog implements CampaignLogInterface
{
    /** @var mixed campaign data */
    private $data;

    /**
     * array(
     * 'title'        => sanitize_text_field($post->post_title),
     * 'content_html' => $post->content_html
     * )
     *
     * @param array $data campaign data
     */
    public function __construct(array $data)
    {
        $this->data = $data;
    }

    public function email_campaign_id()
    {
        return $this->data['email_campaign_id'];
    }

    public function title()
    {
        return $this->data['title'];
    }


    public function content_html()
    {
        return $this->data['content_html'];
    }

    public function content_text()
    {
        return $this->data['content_text'];
    }

    // campaign status is draft by default as set in database table schema
}