src/Entity/Demandeprofil.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\DemandeprofilRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassDemandeprofilRepository::class)]
  8. #[ApiResource]
  9. class Demandeprofil
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $dateDemande null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $description null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $nbreanneeexperience null;
  21.     #[ORM\ManyToOne(inversedBy'demandeprofils')]
  22.     private ?User $user null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $statut null;
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $reponse null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getDateDemande(): ?\DateTimeInterface
  32.     {
  33.         return $this->dateDemande;
  34.     }
  35.     public function setDateDemande(?\DateTimeInterface $dateDemande): self
  36.     {
  37.         $this->dateDemande $dateDemande;
  38.         return $this;
  39.     }
  40.     public function getDescription(): ?string
  41.     {
  42.         return $this->description;
  43.     }
  44.     public function setDescription(?string $description): self
  45.     {
  46.         $this->description $description;
  47.         return $this;
  48.     }
  49.     public function getNbreanneeexperience(): ?string
  50.     {
  51.         return $this->nbreanneeexperience;
  52.     }
  53.     public function setnbreanneeexperience(?string $nbreanneeexperience): self
  54.     {
  55.         $this->nbreanneeexperience $nbreanneeexperience;
  56.         return $this;
  57.     }
  58.     public function getUser(): ?User
  59.     {
  60.         return $this->user;
  61.     }
  62.     public function setUser(?User $user): self
  63.     {
  64.         $this->user $user;
  65.         return $this;
  66.     }
  67.     public function isStatut(): ?bool
  68.     {
  69.         return $this->statut;
  70.     }
  71.     public function setStatut(?bool $statut): self
  72.     {
  73.         $this->statut $statut;
  74.         return $this;
  75.     }
  76.     public function getReponse(): ?string
  77.     {
  78.         return $this->reponse;
  79.     }
  80.     public function setReponse(?string $reponse): self
  81.     {
  82.         $this->reponse $reponse;
  83.         return $this;
  84.     }
  85. }