<?phpnamespace App\Entity;use App\Repository\ContactRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ContactRepository::class)]class Contact{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255)] private $firstname; #[ORM\Column(type: 'string', length: 255)] private $lastname; #[ORM\Column(type: 'string', length: 255)] private $email; #[ORM\Column(type: 'string', length: 255)] private $phone; #[ORM\Column(type: 'text')] private $message; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $date_creation = null; #[ORM\Column(type: 'boolean')] private $done = false; public function __construct() { $this->date_creation = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getFirstname(): ?string { return $this->firstname; } public function setFirstname(string $firstname): self { $this->firstname = $firstname; return $this; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(string $lastname): self { $this->lastname = $lastname; 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 getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->date_creation; } public function setDateCreation(\DateTimeInterface $date_creation): self { $this->date_creation = $date_creation; return $this; } public function isDone(): ?bool { return $this->done; } public function Do() { $this->done = true; } public function unDo() { $this->done = false; } public function setDone(bool $done): self { $this->done = $done; return $this; }}