src/Entity/Contact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Entity\Traits\Timestampable;
  7. #[ORM\HasLifecycleCallbacks]
  8. #[ORM\Entity(repositoryClassContactRepository::class)]
  9. class Contact
  10. {
  11.     use Timestampable;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $name null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $email null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $phone null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $subject null;
  24.     #[ORM\Column(typeTypes::TEXT)]
  25.     private ?string $message null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getName(): ?string
  31.     {
  32.         return $this->name;
  33.     }
  34.     public function setName(?string $name): static
  35.     {
  36.         $this->name $name;
  37.         return $this;
  38.     }
  39.     public function getEmail(): ?string
  40.     {
  41.         return $this->email;
  42.     }
  43.     public function setEmail(?string $email): static
  44.     {
  45.         $this->email $email;
  46.         return $this;
  47.     }
  48.     public function getPhone(): ?string
  49.     {
  50.         return $this->phone;
  51.     }
  52.     public function setPhone(string $phone): static
  53.     {
  54.         $this->phone $phone;
  55.         return $this;
  56.     }
  57.     public function getSubject(): ?string
  58.     {
  59.         return $this->subject;
  60.     }
  61.     public function setSubject(?string $subject): static
  62.     {
  63.         $this->subject $subject;
  64.         return $this;
  65.     }
  66.     public function getMessage(): ?string
  67.     {
  68.         return $this->message;
  69.     }
  70.     public function setMessage(string $message): static
  71.     {
  72.         $this->message $message;
  73.         return $this;
  74.     }
  75. }