<?phpnamespace App\Entity;use ApiPlatform\Core\Annotation\ApiResource;use App\Repository\ContactRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ContactRepository::class)]#[ApiResource]class Contact{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $message = null; #[ORM\Column(length: 255, nullable: true)] private ?string $email = null; #[ORM\Column(length: 255, nullable: true)] private ?string $phone = null; #[ORM\Column(length: 255, nullable: true)] private ?string $nom = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $datemessage = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $reponse = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $datereponse = null; #[ORM\Column(length: 255, nullable: true)] private ?string $objetreponse = null; #[ORM\Column(nullable: true)] private ?bool $isRep = null; public function getId(): ?int { return $this->id; } public function getMessage(): ?string { return $this->message; } public function setMessage(?string $message): self { $this->message = $message; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): self { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): self { $this->phone = $phone; return $this; } public function getNom(): ?string { return $this->nom; } public function setNom(?string $nom): self { $this->nom = $nom; return $this; } public function getDatemessage(): ?\DateTimeInterface { return $this->datemessage; } public function setDatemessage(?\DateTimeInterface $datemessage): self { $this->datemessage = $datemessage; return $this; } public function getReponse(): ?string { return $this->reponse; } public function setReponse(?string $reponse): self { $this->reponse = $reponse; return $this; } public function getDatereponse(): ?\DateTimeInterface { return $this->datereponse; } public function setDatereponse(?\DateTimeInterface $datereponse): self { $this->datereponse = $datereponse; return $this; } public function getObjetreponse(): ?string { return $this->objetreponse; } public function setObjetreponse(?string $objetreponse): self { $this->objetreponse = $objetreponse; return $this; } public function isIsRep(): ?bool { return $this->isRep; } public function setIsRep(?bool $isRep): self { $this->isRep = $isRep; return $this; }}