<?php
namespace App\Entity;
use App\Repository\TransactionalEmailTemplateRepository;
use App\Traits\DateTrait;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\Entity(repositoryClass=TransactionalEmailTemplateRepository::class)
*
* @Vich\Uploadable
*/
class TransactionalEmailTemplate
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id = NULL;
/**
* @ORM\Column(type="text", nullable=true )
*/
private ?string $footerContent = NULL;
/**
* @ORM\Column(type="string", length=9)
*/
private ?string $footerTextColor = NULL;
/**
* @ORM\Column(type="string", length=9)
*/
private ?string $footerBackgroundColor = NULL;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $headerPicture = NULL;
/**
* Vich Uploader
*
* @Vich\UploadableField(mapping="transactional_email_images", fileNameProperty="headerPicture")
*/
private ?File $transactionalEmailHeaderFile = NULL;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $footerPicture = NULL;
/**
* @ORM\Column(type="text", nullable=true )
*/
private ?string $footerPictureWidth = NULL;
/**
* Vich Uploader
*
* @Vich\UploadableField(mapping="transactional_email_images", fileNameProperty="footerPicture")
*/
private ?File $transactionalEmailFooterFile = NULL;
use DateTrait;
public function getId(): ?int
{
return $this->id;
}
public function getFooterContent(): ?string
{
return $this->footerContent;
}
public function setFooterContent( ?string $footerContent ): self
{
$this->footerContent = $footerContent;
return $this;
}
public function getFooterTextColor(): ?string
{
return $this->footerTextColor;
}
public function setFooterTextColor( string $footerTextColor ): self
{
$this->footerTextColor = $footerTextColor;
return $this;
}
public function getFooterBackgroundColor(): ?string
{
return $this->footerBackgroundColor;
}
public function setFooterBackgroundColor( string $footerBackgroundColor ): self
{
$this->footerBackgroundColor = $footerBackgroundColor;
return $this;
}
public function getHeaderPicture(): ?string
{
return $this->headerPicture;
}
public function setHeaderPicture( ?string $headerPicture ): self
{
$this->headerPicture = $headerPicture;
return $this;
}
public function getFooterPicture(): ?string
{
return $this->footerPicture;
}
public function setFooterPicture( ?string $footerPicture ): self
{
$this->footerPicture = $footerPicture;
return $this;
}
public function getFooterPictureWidth(): ?string
{
return $this->footerPictureWidth;
}
public function setFooterPictureWidth( ?string $footerPictureWidth ): self
{
$this->footerPictureWidth = $footerPictureWidth;
return $this;
}
public function getTransactionalEmailHeaderFile(): ?File
{
return $this->transactionalEmailHeaderFile;
}
public function setTransactionalEmailHeaderFile( File $transactionalEmailHeaderFile ): TransactionalEmailTemplate
{
$this->transactionalEmailHeaderFile = $transactionalEmailHeaderFile;
$this->updatedAt = new DateTime();
return $this;
}
public function getTransactionalEmailFooterFile(): ?File
{
return $this->transactionalEmailFooterFile;
}
public function setTransactionalEmailFooterFile( File $transactionalEmailFooterFile ): TransactionalEmailTemplate
{
$this->transactionalEmailFooterFile = $transactionalEmailFooterFile;
$this->updatedAt = new DateTime();
return $this;
}
}