<?phpnamespace App\Entity;use App\Repository\NewsletterRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NewsletterRepository::class) */class Newsletter{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=64) */ private $email; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\Column(type="string", length=45, nullable=true) */ private $ip; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $lastSentAt; /** * @ORM\Column(type="integer", nullable=true) */ private $lastEmailId; /** * @ORM\Column(type="decimal", precision=2, scale=1, nullable=true) */ private $score; public function getId(): ?int { return $this->id; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getIp(): ?string { return $this->ip; } public function setIp(?string $ip): self { $this->ip = $ip; return $this; } public function getLastSentAt(): ?\DateTimeImmutable { return $this->lastSentAt; } public function setLastSentAt(?\DateTimeImmutable $lastSentAt): self { $this->lastSentAt = $lastSentAt; return $this; } public function getLastEmailId(): ?int { return $this->lastEmailId; } public function setLastEmailId(?int $lastEmailId): self { $this->lastEmailId = $lastEmailId; return $this; } public function getScore(): ?string { return $this->score; } public function setScore(?string $score): self { $this->score = $score; return $this; }}