src/Entity/PlanningsFormations.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PlanningsFormationsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PlanningsFormationsRepository::class)
  9.  */
  10. class PlanningsFormations
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $intitule;
  22.     /**
  23.      * @ORM\Column(type="integer")
  24.      */
  25.     private $domaine;
  26.     /**
  27.      * @ORM\Column(type="decimal", precision=4, scale=2)
  28.      */
  29.     private $duree;
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $etat;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Blocs::class, inversedBy="planningsFormations")
  36.      */
  37.     private $blocs;
  38.     /**
  39.      * @ORM\Column(type="date")
  40.      */
  41.     private $dateDebut;
  42.     /**
  43.      * @ORM\Column(type="date", nullable=true)
  44.      */
  45.     private $dateFin;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Formations::class, inversedBy="planningsFormations")
  48.      */
  49.     private $formation;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Formateurs::class, inversedBy="planningsFormations")
  52.      */
  53.     private $formateur;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=Salles::class, inversedBy="planningFormation")
  56.      */
  57.     private $salle;
  58.     /**
  59.      * @ORM\OneToMany(targetEntity=PlagesFormations::class, mappedBy="planning")
  60.      */
  61.     private $plagesFormations;
  62.     /**
  63.      * @ORM\Column(type="time", nullable=true)
  64.      */
  65.     private $matinHoraireDebut;
  66.     /**
  67.      * @ORM\Column(type="time", nullable=true)
  68.      */
  69.     private $matinHoraireFin;
  70.     /**
  71.      * @ORM\Column(type="time", nullable=true)
  72.      */
  73.     private $apresMidiHoraireDebut;
  74.     /**
  75.      * @ORM\Column(type="time", nullable=true)
  76.      */
  77.     private $apresMidiHoraireFin;
  78.     /**
  79.      * @ORM\Column(type="boolean", nullable=true)
  80.      */
  81.     private $dureeNonCompta;
  82.     /**
  83.      * @ORM\Column(type="boolean", nullable=true)
  84.      */
  85.     private $facultatif;
  86.     /**
  87.      * @ORM\Column(type="boolean", nullable=true)
  88.      */
  89.     private $validationPresences;
  90.     /**
  91.      * @ORM\Column(type="integer", nullable=true)
  92.      */
  93.     private $demiJournee;
  94.     /**
  95.      * @ORM\Column(type="boolean", nullable=true)
  96.      */
  97.     private $psc1Groupe1;
  98.     /**
  99.      * @ORM\Column(type="boolean", nullable=true)
  100.      */
  101.     private $psc1Groupe2;
  102.     public function __construct()
  103.     {
  104.         $this->plagesFormations = new ArrayCollection();
  105.     }
  106.     
  107.     public function getId(): ?int
  108.     {
  109.         return $this->id;
  110.     }
  111.     public function getIntitule(): ?string
  112.     {
  113.         return $this->intitule;
  114.     }
  115.     public function setIntitule(string $intitule): self
  116.     {
  117.         $this->intitule $intitule;
  118.         return $this;
  119.     }
  120.     public function getDomaine(): ?int
  121.     {
  122.         return $this->domaine;
  123.     }
  124.     public function setDomaine(int $domaine): self
  125.     {
  126.         $this->domaine $domaine;
  127.         return $this;
  128.     }
  129.     public function getDuree(): ?string
  130.     {
  131.         return $this->duree;
  132.     }
  133.     public function setDuree(string $duree): self
  134.     {
  135.         $this->duree $duree;
  136.         return $this;
  137.     }
  138.     public function getEtat(): ?int
  139.     {
  140.         return $this->etat;
  141.     }
  142.     public function setEtat(int $etat): self
  143.     {
  144.         $this->etat $etat;
  145.         return $this;
  146.     }
  147.     public function getBlocs(): ?Blocs
  148.     {
  149.         return $this->blocs;
  150.     }
  151.     public function setBlocs(?Blocs $blocs): self
  152.     {
  153.         $this->blocs $blocs;
  154.         return $this;
  155.     }
  156.     public function getDateDebut(): ?\DateTimeInterface
  157.     {
  158.         return $this->dateDebut;
  159.     }
  160.     public function setDateDebut(\DateTimeInterface $dateDebut): self
  161.     {
  162.         $this->dateDebut $dateDebut;
  163.         return $this;
  164.     }
  165.     public function getDateFin(): ?\DateTimeInterface
  166.     {
  167.         return $this->dateFin;
  168.     }
  169.     public function setDateFin(?\DateTimeInterface $dateFin): self
  170.     {
  171.         $this->dateFin $dateFin;
  172.         return $this;
  173.     }
  174.     public function getFormation(): ?Formations
  175.     {
  176.         return $this->formation;
  177.     }
  178.     public function setFormation(?Formations $formation): self
  179.     {
  180.         $this->formation $formation;
  181.         return $this;
  182.     }
  183.     public function getFormateur(): ?Formateurs
  184.     {
  185.         return $this->formateur;
  186.     }
  187.     public function setFormateur(?Formateurs $formateur): self
  188.     {
  189.         $this->formateur $formateur;
  190.         return $this;
  191.     }
  192.     public function getSalle(): ?Salles
  193.     {
  194.         return $this->salle;
  195.     }
  196.     public function setSalle(?Salles $salle): self
  197.     {
  198.         $this->salle $salle;
  199.         return $this;
  200.     }
  201.     /**
  202.      * @return Collection|PlagesFormations[]
  203.      */
  204.     public function getPlagesFormations(): Collection
  205.     {
  206.         return $this->plagesFormations;
  207.     }
  208.     public function addPlagesFormation(PlagesFormations $plagesFormation): self
  209.     {
  210.         if (!$this->plagesFormations->contains($plagesFormation)) {
  211.             $this->plagesFormations[] = $plagesFormation;
  212.             $plagesFormation->setPlanning($this);
  213.         }
  214.         return $this;
  215.     }
  216.     public function removePlagesFormation(PlagesFormations $plagesFormation): self
  217.     {
  218.         if ($this->plagesFormations->removeElement($plagesFormation)) {
  219.             // set the owning side to null (unless already changed)
  220.             if ($plagesFormation->getPlanning() === $this) {
  221.                 $plagesFormation->setPlanning(null);
  222.             }
  223.         }
  224.         return $this;
  225.     }
  226.     public function getMatinHoraireDebut(): ?\DateTimeInterface
  227.     {
  228.         return $this->matinHoraireDebut;
  229.     }
  230.     public function setMatinHoraireDebut(?\DateTimeInterface $matinHoraireDebut): self
  231.     {
  232.         $this->matinHoraireDebut $matinHoraireDebut;
  233.         return $this;
  234.     }
  235.     public function getMatinHoraireFin(): ?\DateTimeInterface
  236.     {
  237.         return $this->matinHoraireFin;
  238.     }
  239.     public function setMatinHoraireFin(?\DateTimeInterface $matinHoraireFin): self
  240.     {
  241.         $this->matinHoraireFin $matinHoraireFin;
  242.         return $this;
  243.     }
  244.     public function getApresMidiHoraireDebut(): ?\DateTimeInterface
  245.     {
  246.         return $this->apresMidiHoraireDebut;
  247.     }
  248.     public function setApresMidiHoraireDebut(?\DateTimeInterface $apresMidiHoraireDebut): self
  249.     {
  250.         $this->apresMidiHoraireDebut $apresMidiHoraireDebut;
  251.         return $this;
  252.     }
  253.     public function getApresMidiHoraireFin(): ?\DateTimeInterface
  254.     {
  255.         return $this->apresMidiHoraireFin;
  256.     }
  257.     public function setApresMidiHoraireFin(?\DateTimeInterface $apresMidiHoraireFin): self
  258.     {
  259.         $this->apresMidiHoraireFin $apresMidiHoraireFin;
  260.         return $this;
  261.     }
  262.     public function getDureeNonCompta(): ?bool
  263.     {
  264.         return $this->dureeNonCompta;
  265.     }
  266.     public function setDureeNonCompta(?bool $dureeNonCompta): self
  267.     {
  268.         $this->dureeNonCompta $dureeNonCompta;
  269.         return $this;
  270.     }
  271.     public function getFacultatif(): ?bool
  272.     {
  273.         return $this->facultatif;
  274.     }
  275.     public function setFacultatif(?bool $facultatif): self
  276.     {
  277.         $this->facultatif $facultatif;
  278.         return $this;
  279.     }
  280.     public function getValidationPresences(): ?bool
  281.     {
  282.         return $this->validationPresences;
  283.     }
  284.     public function setValidationPresences(?bool $validationPresences): self
  285.     {
  286.         $this->validationPresences $validationPresences;
  287.         return $this;
  288.     }
  289.     public function getDemiJournee(): ?int
  290.     {
  291.         return $this->demiJournee;
  292.     }
  293.     public function setDemiJournee(?int $demiJournee): self
  294.     {
  295.         $this->demiJournee $demiJournee;
  296.         return $this;
  297.     }
  298.     public function getPsc1Groupe1(): ?bool
  299.     {
  300.         return $this->psc1Groupe1;
  301.     }
  302.     public function setPsc1Groupe1(?bool $psc1Groupe1): self
  303.     {
  304.         $this->psc1Groupe1 $psc1Groupe1;
  305.         return $this;
  306.     }
  307.     public function getPsc1Groupe2(): ?bool
  308.     {
  309.         return $this->psc1Groupe2;
  310.     }
  311.     public function setPsc1Groupe2(?bool $psc1Groupe2): self
  312.     {
  313.         $this->psc1Groupe2 $psc1Groupe2;
  314.         return $this;
  315.     }
  316. }