src/Entity/Demmandeformation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\DemmandeformationRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassDemmandeformationRepository::class)]
  10. #[ApiResource]
  11. class Demmandeformation
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $titre null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $description null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  22.     private ?\DateTimeInterface $date null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $duree null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $nbcandidats null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $budget null;
  29.     #[ORM\ManyToOne(inversedBy'demmandeformations')]
  30.     private ?User $user null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?bool $statut null;
  33.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  34.     private ?string $reponse null;
  35.     #[ORM\OneToMany(mappedBy'demande'targetEntityReponseDemandeFormation::class,cascade: ['remove'])]
  36.     private Collection $reponseDemandeFormations;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?bool $vuadmin null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?bool $vupartner null;
  41.     public function __construct()
  42.     {
  43.         $this->reponseDemandeFormations = new ArrayCollection();
  44.     }
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getTitre(): ?string
  50.     {
  51.         return $this->titre;
  52.     }
  53.     public function setTitre(?string $titre): self
  54.     {
  55.         $this->titre $titre;
  56.         return $this;
  57.     }
  58.     public function getDescription(): ?string
  59.     {
  60.         return $this->description;
  61.     }
  62.     public function setDescription(?string $description): self
  63.     {
  64.         $this->description $description;
  65.         return $this;
  66.     }
  67.     public function getDate(): ?\DateTimeInterface
  68.     {
  69.         return $this->date;
  70.     }
  71.     public function setDate(\DateTimeInterface $date): self
  72.     {
  73.         $this->date $date;
  74.         return $this;
  75.     }
  76.     public function getDuree(): ?string
  77.     {
  78.         return $this->duree;
  79.     }
  80.     public function setDuree(?string $duree): self
  81.     {
  82.         $this->duree $duree;
  83.         return $this;
  84.     }
  85.     public function getNbcandidats(): ?string
  86.     {
  87.         return $this->nbcandidats;
  88.     }
  89.     public function setNbcandidats(?string $nbcandidats): self
  90.     {
  91.         $this->nbcandidats $nbcandidats;
  92.         return $this;
  93.     }
  94.     public function getBudget(): ?string
  95.     {
  96.         return $this->budget;
  97.     }
  98.     public function setBudget(?string $budget): self
  99.     {
  100.         $this->budget $budget;
  101.         return $this;
  102.     }
  103.     public function getUser(): ?User
  104.     {
  105.         return $this->user;
  106.     }
  107.     public function setUser(?User $user): self
  108.     {
  109.         $this->user $user;
  110.         return $this;
  111.     }
  112.     public function isStatut(): ?bool
  113.     {
  114.         return $this->statut;
  115.     }
  116.     public function setStatut(?bool $statut): self
  117.     {
  118.         $this->statut $statut;
  119.         return $this;
  120.     }
  121.     public function getReponse(): ?string
  122.     {
  123.         return $this->reponse;
  124.     }
  125.     public function setReponse(?string $reponse): self
  126.     {
  127.         $this->reponse $reponse;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return Collection<int, ReponseDemandeFormation>
  132.      */
  133.     public function getReponseDemandeFormations(): Collection
  134.     {
  135.         return $this->reponseDemandeFormations;
  136.     }
  137.     public function addReponseDemandeFormation(ReponseDemandeFormation $reponseDemandeFormation): self
  138.     {
  139.         if (!$this->reponseDemandeFormations->contains($reponseDemandeFormation)) {
  140.             $this->reponseDemandeFormations->add($reponseDemandeFormation);
  141.             $reponseDemandeFormation->setDemande($this);
  142.         }
  143.         return $this;
  144.     }
  145.     public function removeReponseDemandeFormation(ReponseDemandeFormation $reponseDemandeFormation): self
  146.     {
  147.         if ($this->reponseDemandeFormations->removeElement($reponseDemandeFormation)) {
  148.             // set the owning side to null (unless already changed)
  149.             if ($reponseDemandeFormation->getDemande() === $this) {
  150.                 $reponseDemandeFormation->setDemande(null);
  151.             }
  152.         }
  153.         return $this;
  154.     }
  155.     public function isVuadmin(): ?bool
  156.     {
  157.         return $this->vuadmin;
  158.     }
  159.     public function setVuadmin(?bool $vuadmin): self
  160.     {
  161.         $this->vuadmin $vuadmin;
  162.         return $this;
  163.     }
  164.     public function isVupartner(): ?bool
  165.     {
  166.         return $this->vupartner;
  167.     }
  168.     public function setVupartner(?bool $vupartner): self
  169.     {
  170.         $this->vupartner $vupartner;
  171.         return $this;
  172.     }
  173. }