src/Entity/ApplyRequest.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ApplyRequestRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassApplyRequestRepository::class)]
  6. class ApplyRequest
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'datetime'nullabletrue)]
  13.     private $date;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $nom;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $email;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $tel;
  20.     #[ORM\Column(type'text')]
  21.     private $message;
  22.     #[ORM\Column(type'string'length255)]
  23.     private $cv;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $lettre;
  26.     #[ORM\Column(type'integer'nullabletrue)]
  27.     private $rgpd;
  28.     #[ORM\ManyToOne(targetEntityAnnouncement::class, inversedBy'applyRequests')]
  29.     #[ORM\JoinColumn(nullablefalse)]
  30.     private $annonce;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getDate(): ?\DateTimeInterface
  36.     {
  37.         return $this->date;
  38.     }
  39.     public function setDate(?\DateTimeInterface $date): self
  40.     {
  41.         $this->date $date;
  42.         return $this;
  43.     }
  44.     public function getNom(): ?string
  45.     {
  46.         return $this->nom;
  47.     }
  48.     public function setNom(string $nom): self
  49.     {
  50.         $this->nom $nom;
  51.         return $this;
  52.     }
  53.     public function getEmail(): ?string
  54.     {
  55.         return $this->email;
  56.     }
  57.     public function setEmail(string $email): self
  58.     {
  59.         $this->email $email;
  60.         return $this;
  61.     }
  62.     public function getTel(): ?string
  63.     {
  64.         return $this->tel;
  65.     }
  66.     public function setTel(string $tel): self
  67.     {
  68.         $this->tel $tel;
  69.         return $this;
  70.     }
  71.     public function getMessage(): ?string
  72.     {
  73.         return $this->message;
  74.     }
  75.     public function setMessage(string $message): self
  76.     {
  77.         $this->message $message;
  78.         return $this;
  79.     }
  80.     public function getCv(): ?string
  81.     {
  82.         return $this->cv;
  83.     }
  84.     public function setCv(string $cv): self
  85.     {
  86.         $this->cv $cv;
  87.         return $this;
  88.     }
  89.     public function getLettre(): ?string
  90.     {
  91.         return $this->lettre;
  92.     }
  93.     public function setLettre(?string $lettre): self
  94.     {
  95.         $this->lettre $lettre;
  96.         return $this;
  97.     }
  98.     public function getRgpd(): ?int
  99.     {
  100.         return $this->rgpd;
  101.     }
  102.     public function setRgpd(?int $rgpd): self
  103.     {
  104.         $this->rgpd $rgpd;
  105.         return $this;
  106.     }
  107.     public function getAnnonce(): ?Announcement
  108.     {
  109.         return $this->annonce;
  110.     }
  111.     public function setAnnonce(?Announcement $annonce): self
  112.     {
  113.         $this->annonce $annonce;
  114.         return $this;
  115.     }
  116.     public function getUploadPath(): ?string
  117.     {
  118.         return 'clients/'.$this->annonce->getAccountingFirm()->getHost().'/assets/cvs/'.$this->annonce->getId().'/';
  119.     }
  120. }