src/IlaveU/Apps/NewsletterBundle/Entity/NewsletterMailLog.php line 12
<?phpnamespace App\IlaveU\Apps\NewsletterBundle\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\IlaveU\Apps\NewsletterBundle\Entity\NewsletterMailLogRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: NewsletterMailLogRepository::class)]#[ApiResource]class NewsletterMailLog{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $recipientEmail = null;#[ORM\Column(length: 255)]private ?string $status = null;#[ORM\Column(length: 255, nullable: true)]private ?string $errorMessage = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $createdAt = null;#[ORM\ManyToOne(inversedBy: 'newsletterMailLogs',cascade:["persist"])]#[ORM\JoinColumn(nullable: false)]private ?NewsletterCompaignLaunch $newsletterCompaignLaunch = null;#[ORM\Column(nullable: true)]private ?bool $opened = false;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $openedAt = null;public function __construct(){$this->createdAt = new \DateTime();}public function getId(): ?int{return $this->id;}public function getRecipientEmail(): ?string{return $this->recipientEmail;}public function setRecipientEmail(string $recipientEmail): static{$this->recipientEmail = $recipientEmail;return $this;}public function getStatus(): ?string{return $this->status;}public function setStatus(string $status): static{$this->status = $status;return $this;}public function getErrorMessage(): ?string{return $this->errorMessage;}public function setErrorMessage(?string $errorMessage): static{$this->errorMessage = $errorMessage;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(?\DateTimeInterface $createdAt): static{$this->createdAt = $createdAt;return $this;}public function getNewsletterCompaignLaunch(): ?NewsletterCompaignLaunch{return $this->newsletterCompaignLaunch;}public function setNewsletterCompaignLaunch(?NewsletterCompaignLaunch $newsletterCompaignLaunch): static{$this->newsletterCompaignLaunch = $newsletterCompaignLaunch;return $this;}public function isOpened(): ?bool{return $this->opened;}public function setOpened(?bool $opened): static{$this->opened = $opened;return $this;}public function getOpenedAt(): ?\DateTimeInterface{return $this->openedAt;}public function setOpenedAt(?\DateTimeInterface $openedAt): static{$this->openedAt = $openedAt;return $this;}}