<?phpnamespace App\Entity\Contact;use DateTimeInterface;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use App\Repository\Contact\ContactRepository;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: ContactRepository::class)]class Contact{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $name = null; #[ORM\Column(length: 255, nullable: true)] private ?string $email = null; #[ORM\Column(length: 255, nullable: true)] private ?string $entreprise = null; #[ORM\Column(length: 255, nullable: true)] private ?string $phone = null; #[ORM\Column(length: 255, nullable: true)] private ?string $emailHoneypot = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $message = null; #[ORM\Column] private ?bool $isAccepted = null; /** * @Gedmo\Timestampable(on="create") */ #[ORM\Column(type: "datetime", nullable: true)] private ?DateTimeInterface $createdAt = null; #[ORM\Column(length: 255, nullable: true)] private ?string $origin = null; #[ORM\Column(nullable: true)] private ?int $originId = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(?string $name): self { $this->name = $name; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): self { $this->email = $email; return $this; } public function getEntreprise(): ?string { return $this->entreprise; } public function setEntreprise(?string $entreprise): self { $this->entreprise = $entreprise; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): self { $this->phone = $phone; return $this; } public function getEmailHoneypot(): ?string { return $this->emailHoneypot; } public function setEmailHoneypot(?string $emailHoneypot): self { $this->emailHoneypot = $emailHoneypot; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(?string $message): self { $this->message = $message; return $this; } public function isisAccepted(): ?bool { return $this->isAccepted; } public function setisAccepted(bool $isAccepted): self { $this->isAccepted = $isAccepted; return $this; } public function getOrigin(): ?string { return $this->origin; } public function setOrigin(?string $origin): self { $this->origin = $origin; return $this; } public function getOriginId(): ?int { return $this->originId; } public function setOriginId(?int $originId): self { $this->originId = $originId; return $this; }}