<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ContactMessageRepository") * @ORM\Table(name="contact_message") */class ContactMessage{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="string", length=255) */ private $email; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $subject; /** * @ORM\Column(type="text") */ private $message; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="boolean", options={"default": false}) */ private $isRead = false; /** * @ORM\Column(type="string", length=45, nullable=true) */ private $ipAddress; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getSubject(): ?string { return $this->subject; } public function setSubject(?string $subject): self { $this->subject = $subject; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getIsRead(): ?bool { return $this->isRead; } public function setIsRead(bool $isRead): self { $this->isRead = $isRead; return $this; } public function getIpAddress(): ?string { return $this->ipAddress; } public function setIpAddress(?string $ipAddress): self { $this->ipAddress = $ipAddress; return $this; }}