111 lines
1.9 KiB
PHP
111 lines
1.9 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use App\Repository\MailRepository;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Entity(repositoryClass=MailRepository::class)
|
||
|
*/
|
||
|
class Mail
|
||
|
{
|
||
|
/**
|
||
|
* @ORM\Id
|
||
|
* @ORM\GeneratedValue
|
||
|
* @ORM\Column(type="integer")
|
||
|
*/
|
||
|
private $id;
|
||
|
|
||
|
/**
|
||
|
* @ORM\ManyToOne(targetEntity=Mailing::class, inversedBy="mails")
|
||
|
* @ORM\JoinColumn(nullable=false)
|
||
|
*/
|
||
|
private $mailing;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(type="string", length=255)
|
||
|
*/
|
||
|
private $subject;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(type="date")
|
||
|
*/
|
||
|
private $date;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(type="text", nullable=true)
|
||
|
*/
|
||
|
private $htmlContent;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(type="text", nullable=true)
|
||
|
*/
|
||
|
private $textContent;
|
||
|
|
||
|
public function getId(): ?int
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function getMailing(): ?Mailing
|
||
|
{
|
||
|
return $this->mailing;
|
||
|
}
|
||
|
|
||
|
public function setMailing(?Mailing $mailing): self
|
||
|
{
|
||
|
$this->mailing = $mailing;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getSubject(): ?string
|
||
|
{
|
||
|
return $this->subject;
|
||
|
}
|
||
|
|
||
|
public function setSubject(string $subject): self
|
||
|
{
|
||
|
$this->subject = $subject;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getDate(): ?\DateTimeInterface
|
||
|
{
|
||
|
return $this->date;
|
||
|
}
|
||
|
|
||
|
public function setDate(\DateTimeInterface $date): self
|
||
|
{
|
||
|
$this->date = $date;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getHtmlContent(): ?string
|
||
|
{
|
||
|
return $this->htmlContent;
|
||
|
}
|
||
|
|
||
|
public function setHtmlContent(?string $htmlContent): self
|
||
|
{
|
||
|
$this->htmlContent = $htmlContent;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getTextContent(): ?string
|
||
|
{
|
||
|
return $this->textContent;
|
||
|
}
|
||
|
|
||
|
public function setTextContent(?string $textContent): self
|
||
|
{
|
||
|
$this->textContent = $textContent;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|