<?phpnamespace App\Entity;use App\Repository\ContactRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ContactRepository::class) */class Contact{ /** * @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) */ private $subject; /** * @ORM\Column(type="text") */ private $message; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $telephone; /** * @ORM\Column(type="string", length=255) */ private $ipAddress; 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(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getTelephone(): ?string { return $this->telephone; } public function setTelephone(?string $telephone): self { $this->telephone = $telephone; return $this; } public function getIpAddress(): ?string { return $this->ipAddress; } public function setIpAddress(string $ipAddress): self { $this->ipAddress = $ipAddress; return $this; }}