src/Entity/Registration/Contact.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Registration;
  3. use App\Repository\Registration\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ContactRepository::class)]
  6. class Contact
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id = null;
  12.     #[ORM\Column(length: 255)]
  13.     private ?string $fullName = null;
  14.     #[ORM\Column(length: 255, unique: true)]
  15.     private ?string $email = null;
  16.     #[ORM\Column(length: 255)]
  17.     private ?string $phone = null;
  18.     #[ORM\Column(length: 500)]
  19.     private ?string $message = null;
  20.     #[ORM\Column]
  21.     private ?\DateTimeImmutable $createdAt = null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getFullName(): ?string
  27.     {
  28.         return $this->fullName;
  29.     }
  30.     public function setFullName(string $fullName): static
  31.     {
  32.         $this->fullName = $fullName;
  33.         return $this;
  34.     }
  35.     public function getEmail(): ?string
  36.     {
  37.         return $this->email;
  38.     }
  39.     public function setEmail(string $email): static
  40.     {
  41.         $this->email = $email;
  42.         return $this;
  43.     }
  44.     public function getPhone(): ?string
  45.     {
  46.         return $this->phone;
  47.     }
  48.     public function setPhone(string $phone): static
  49.     {
  50.         $this->phone = $phone;
  51.         return $this;
  52.     }
  53.     public function getMessage(): ?string
  54.     {
  55.         return $this->message;
  56.     }
  57.     public function setMessage(string $message): static
  58.     {
  59.         $this->message = $message;
  60.         return $this;
  61.     }
  62.     public function getCreatedAt(): ?\DateTimeImmutable
  63.     {
  64.         return $this->createdAt;
  65.     }
  66.     public function setCreatedAt(\DateTimeImmutable $createdAt): static
  67.     {
  68.         $this->createdAt = $createdAt;
  69.         return $this;
  70.     }
  71. }