<?php
namespace App\Entity;
use App\Repository\MailingLogRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MailingLogRepository::class)]
class MailingLog
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: mailingTask::class, inversedBy: 'mailingLogs')]
private $mailingTask;
#[ORM\Column(type: 'datetime')]
private $dateCreated;
#[ORM\Column(type: 'text', nullable: true)]
private $message;
#[ORM\Column(type: 'string', length: 255)]
private $type;
public function __construct()
{
$this->dateCreated = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getMailingTask(): ?mailingTask
{
return $this->mailingTask;
}
public function setMailingTask(?mailingTask $mailingTask): self
{
$this->mailingTask = $mailingTask;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(\DateTimeInterface $dateCreated): self
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
}