src/Entity/Contact.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassContactRepository::class)]
  6. class Contact
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $first_name;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $last_name;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $email;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $company_name;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $subject;
  22.     #[ORM\Column(type'text')]
  23.     private $message;
  24.     #[ORM\Column(type'datetime_immutable')]
  25.     private $createdAt;
  26.     #[ORM\Column(type'boolean'nullabletrue)]
  27.     private $is_read;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getFirstName(): ?string
  33.     {
  34.         return $this->first_name;
  35.     }
  36.     public function setFirstName(string $first_name): self
  37.     {
  38.         $this->first_name $first_name;
  39.         return $this;
  40.     }
  41.     public function getLastName(): ?string
  42.     {
  43.         return $this->last_name;
  44.     }
  45.     public function setLastName(string $last_name): self
  46.     {
  47.         $this->last_name $last_name;
  48.         return $this;
  49.     }
  50.     public function getEmail(): ?string
  51.     {
  52.         return $this->email;
  53.     }
  54.     public function setEmail(string $email): self
  55.     {
  56.         $this->email $email;
  57.         return $this;
  58.     }
  59.     public function getCompanyName(): ?string
  60.     {
  61.         return $this->company_name;
  62.     }
  63.     public function setCompanyName(?string $company_name): self
  64.     {
  65.         $this->company_name $company_name;
  66.         return $this;
  67.     }
  68.     public function getSubject(): ?string
  69.     {
  70.         return $this->subject;
  71.     }
  72.     public function setSubject(string $subject): self
  73.     {
  74.         $this->subject $subject;
  75.         return $this;
  76.     }
  77.     public function getMessage(): ?string
  78.     {
  79.         return $this->message;
  80.     }
  81.     public function setMessage(string $message): self
  82.     {
  83.         $this->message $message;
  84.         return $this;
  85.     }
  86.     public function getCreatedAt(): ?\DateTimeImmutable
  87.     {
  88.         return $this->createdAt;
  89.     }
  90.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  91.     {
  92.         $this->createdAt $createdAt;
  93.         return $this;
  94.     }
  95.     public function getIsRead(): ?bool
  96.     {
  97.         return $this->is_read;
  98.     }
  99.     public function setIsRead(?bool $is_read): self
  100.     {
  101.         $this->is_read $is_read;
  102.         return $this;
  103.     }
  104. }