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]
  11.     private ?int $id null;
  12.     #[ORM\Column(length50nullabletrue)]
  13.     private ?string $yourname null;
  14.     #[ORM\Column(length100)]
  15.     private ?string $youremail null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $yourmessage null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getYourname(): ?string
  23.     {
  24.         return $this->yourname;
  25.     }
  26.     public function setYourname(?string $yourname): self
  27.     {
  28.         $this->yourname $yourname;
  29.         return $this;
  30.     }
  31.     public function getYouremail(): ?string
  32.     {
  33.         return $this->youremail;
  34.     }
  35.     public function setYouremail(string $youremail): self
  36.     {
  37.         $this->youremail $youremail;
  38.         return $this;
  39.     }
  40.     public function getYourmessage(): ?string
  41.     {
  42.         return $this->yourmessage;
  43.     }
  44.     public function setYourmessage(string $yourmessage): self
  45.     {
  46.         $this->yourmessage $yourmessage;
  47.         return $this;
  48.     }
  49. }