src/Entity/Contact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\ContactRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassContactRepository::class)]
  8. #[ApiResource]
  9. class Contact
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $message null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $email null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $phone null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $nom null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $datemessage null;
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $reponse null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $datereponse null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $objetreponse null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?bool $isRep null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getMessage(): ?string
  38.     {
  39.         return $this->message;
  40.     }
  41.     public function setMessage(?string $message): self
  42.     {
  43.         $this->message $message;
  44.         return $this;
  45.     }
  46.     public function getEmail(): ?string
  47.     {
  48.         return $this->email;
  49.     }
  50.     public function setEmail(?string $email): self
  51.     {
  52.         $this->email $email;
  53.         return $this;
  54.     }
  55.     public function getPhone(): ?string
  56.     {
  57.         return $this->phone;
  58.     }
  59.     public function setPhone(?string $phone): self
  60.     {
  61.         $this->phone $phone;
  62.         return $this;
  63.     }
  64.     public function getNom(): ?string
  65.     {
  66.         return $this->nom;
  67.     }
  68.     public function setNom(?string $nom): self
  69.     {
  70.         $this->nom $nom;
  71.         return $this;
  72.     }
  73.     public function getDatemessage(): ?\DateTimeInterface
  74.     {
  75.         return $this->datemessage;
  76.     }
  77.     public function setDatemessage(?\DateTimeInterface $datemessage): self
  78.     {
  79.         $this->datemessage $datemessage;
  80.         return $this;
  81.     }
  82.     public function getReponse(): ?string
  83.     {
  84.         return $this->reponse;
  85.     }
  86.     public function setReponse(?string $reponse): self
  87.     {
  88.         $this->reponse $reponse;
  89.         return $this;
  90.     }
  91.     public function getDatereponse(): ?\DateTimeInterface
  92.     {
  93.         return $this->datereponse;
  94.     }
  95.     public function setDatereponse(?\DateTimeInterface $datereponse): self
  96.     {
  97.         $this->datereponse $datereponse;
  98.         return $this;
  99.     }
  100.     public function getObjetreponse(): ?string
  101.     {
  102.         return $this->objetreponse;
  103.     }
  104.     public function setObjetreponse(?string $objetreponse): self
  105.     {
  106.         $this->objetreponse $objetreponse;
  107.         return $this;
  108.     }
  109.     public function isIsRep(): ?bool
  110.     {
  111.         return $this->isRep;
  112.     }
  113.     public function setIsRep(?bool $isRep): self
  114.     {
  115.         $this->isRep $isRep;
  116.         return $this;
  117.     }
  118. }