<?phpnamespace App\Entity;use App\Repository\ApplyRequestRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ApplyRequestRepository::class)]class ApplyRequest{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'datetime', nullable: true)] private $date; #[ORM\Column(type: 'string', length: 255)] private $nom; #[ORM\Column(type: 'string', length: 255)] private $email; #[ORM\Column(type: 'string', length: 255)] private $tel; #[ORM\Column(type: 'text')] private $message; #[ORM\Column(type: 'string', length: 255)] private $cv; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $lettre; #[ORM\Column(type: 'integer', nullable: true)] private $rgpd; #[ORM\ManyToOne(targetEntity: Announcement::class, inversedBy: 'applyRequests')] #[ORM\JoinColumn(nullable: false)] private $annonce; public function getId(): ?int { return $this->id; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(?\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): self { $this->nom = $nom; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getTel(): ?string { return $this->tel; } public function setTel(string $tel): self { $this->tel = $tel; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getCv(): ?string { return $this->cv; } public function setCv(string $cv): self { $this->cv = $cv; return $this; } public function getLettre(): ?string { return $this->lettre; } public function setLettre(?string $lettre): self { $this->lettre = $lettre; return $this; } public function getRgpd(): ?int { return $this->rgpd; } public function setRgpd(?int $rgpd): self { $this->rgpd = $rgpd; return $this; } public function getAnnonce(): ?Announcement { return $this->annonce; } public function setAnnonce(?Announcement $annonce): self { $this->annonce = $annonce; return $this; } public function getUploadPath(): ?string { return 'clients/'.$this->annonce->getAccountingFirm()->getHost().'/assets/cvs/'.$this->annonce->getId().'/'; }}