[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.156.74: ~ $
<?php

namespace MailPoet\Entities;

if (!defined('ABSPATH')) exit;


use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait;
use MailPoet\Doctrine\EntityTraits\CreatedAtTrait;
use MailPoet\Doctrine\EntityTraits\SafeToOneAssociationLoadTrait;
use MailPoet\Doctrine\EntityTraits\UpdatedAtTrait;
use MailPoetVendor\Doctrine\ORM\Mapping as ORM;
use MailPoetVendor\Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity()
 * @ORM\Table(name="newsletter_templates")
 */
class NewsletterTemplateEntity {
  use AutoincrementedIdTrait;
  use CreatedAtTrait;
  use UpdatedAtTrait;
  use SafeToOneAssociationLoadTrait;

  /**
   * @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterEntity")
   * @var NewsletterEntity|null
   */
  private $newsletter;

  /**
   * @ORM\Column(type="string")
   * @Assert\NotBlank()
   * @var string
   */
  private $name;

  /**
   * @ORM\Column(type="string")
   * @var string
   */
  private $categories = '[]';

  /**
   * @ORM\Column(type="json", nullable=true)
   * @Assert\NotBlank()
   * @var array|null
   */
  private $body;

  /**
   * @ORM\Column(type="string", nullable=true)
   * @var string|null
   */
  private $thumbnail;

  /**
   * @ORM\Column(type="boolean")
   * @var bool
   */
  private $readonly = false;

  public function __construct(
    string $name
  ) {
    $this->name = $name;
  }

  /**
   * @return NewsletterEntity|null
   */
  public function getNewsletter() {
    $this->safelyLoadToOneAssociation('newsletter');
    return $this->newsletter;
  }

  /**
   * @param NewsletterEntity|null $newsletter
   */
  public function setNewsletter($newsletter) {
    $this->newsletter = $newsletter;
  }

  public function getName(): string {
    return $this->name;
  }

  public function setName(string $name) {
    $this->name = $name;
  }

  public function getCategories(): string {
    return $this->categories;
  }

  public function setCategories(string $categories) {
    $this->categories = $categories;
  }

  /**
   * @return array|null
   */
  public function getBody() {
    return $this->body;
  }

  /**
   * @param array|null $body
   */
  public function setBody($body) {
    $this->body = $body;
  }

  /**
   * @return string|null
   */
  public function getThumbnail() {
    return $this->thumbnail;
  }

  /**
   * @param string|null $thumbnail
   */
  public function setThumbnail($thumbnail) {
    $this->thumbnail = $thumbnail;
  }

  public function getReadonly(): bool {
    return $this->readonly;
  }

  public function setReadonly(bool $readonly) {
    $this->readonly = $readonly;
  }
}

Filemanager

Name Type Size Permission Actions
CustomFieldEntity.php File 1.64 KB 0644
DynamicSegmentFilterData.php File 1.28 KB 0644
DynamicSegmentFilterEntity.php File 1.51 KB 0644
FeatureFlagEntity.php File 1.25 KB 0644
FormEntity.php File 4.65 KB 0644
LogEntity.php File 1.32 KB 0644
NewsletterEntity.php File 10.66 KB 0644
NewsletterLinkEntity.php File 2.34 KB 0644
NewsletterOptionEntity.php File 1.7 KB 0644
NewsletterOptionFieldEntity.php File 1.89 KB 0644
NewsletterPostEntity.php File 1.17 KB 0644
NewsletterSegmentEntity.php File 1.33 KB 0644
NewsletterTemplateEntity.php File 2.53 KB 0644
ScheduledTaskEntity.php File 2.97 KB 0644
ScheduledTaskSubscriberEntity.php File 2.34 KB 0644
SegmentEntity.php File 4.05 KB 0644
SendingQueueEntity.php File 4.82 KB 0644
SettingEntity.php File 1.26 KB 0644
StatisticsBounceEntity.php File 1.34 KB 0644
StatisticsClickEntity.php File 4.15 KB 0644
StatisticsFormEntity.php File 1.26 KB 0644
StatisticsNewsletterEntity.php File 2.1 KB 0644
StatisticsOpenEntity.php File 2.64 KB 0644
StatisticsUnsubscribeEntity.php File 2.43 KB 0644
StatisticsWooCommercePurchaseEntity.php File 3.2 KB 0644
StatsNotificationEntity.php File 1.3 KB 0644
SubscriberCustomFieldEntity.php File 3.19 KB 0644
SubscriberEntity.php File 9.79 KB 0644
SubscriberIPEntity.php File 979 B 0644
SubscriberSegmentEntity.php File 1.67 KB 0644
UserAgentEntity.php File 1.32 KB 0644
UserFlagEntity.php File 1.22 KB 0644
index.php File 0 B 0644