src/Entity/FormationsThematics.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormationsThematicsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=FormationsThematicsRepository::class)
  9.  */
  10. class FormationsThematics
  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, nullable=true)
  20.      */
  21.     private $label;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Formations::class, inversedBy="thematics")
  24.      */
  25.     private $formation;
  26.     /**
  27.      * @ORM\Column(type="boolean", nullable=true)
  28.      */
  29.     private $isEnabled;
  30.     /**
  31.      * @ORM\ManyToMany(targetEntity=Registrations::class, mappedBy="thematics")
  32.      */
  33.     private $registrations;
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $details;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $target;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $duration;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $cost;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Domains::class)
  52.      */
  53.     private $domain;
  54.     /**
  55.      * @ORM\Column(type="text", nullable=true)
  56.      */
  57.     private $mainObjective;
  58.     /**
  59.      * @ORM\Column(type="text", nullable=true)
  60.      */
  61.     private $specificsObjectives;
  62.     public function __construct()
  63.     {
  64.         $this->registrations = new ArrayCollection();
  65.     }
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getLabel(): ?string
  71.     {
  72.         return $this->label;
  73.     }
  74.     public function setLabel(?string $label): self
  75.     {
  76.         $this->label $label;
  77.         return $this;
  78.     }
  79.     public function getFormation(): ?Formations
  80.     {
  81.         return $this->formation;
  82.     }
  83.     public function setFormation(?Formations $formation): self
  84.     {
  85.         $this->formation $formation;
  86.         return $this;
  87.     }
  88.     public function getIsEnabled(): ?bool
  89.     {
  90.         return $this->isEnabled;
  91.     }
  92.     public function setIsEnabled(?bool $isEnabled): self
  93.     {
  94.         $this->isEnabled $isEnabled;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return Collection<int, Registrations>
  99.      */
  100.     public function getRegistrations(): Collection
  101.     {
  102.         return $this->registrations;
  103.     }
  104.     public function addRegistration(Registrations $registration): self
  105.     {
  106.         if (!$this->registrations->contains($registration)) {
  107.             $this->registrations[] = $registration;
  108.             $registration->addThematic($this);
  109.         }
  110.         return $this;
  111.     }
  112.     public function removeRegistration(Registrations $registration): self
  113.     {
  114.         if ($this->registrations->removeElement($registration)) {
  115.             $registration->removeThematic($this);
  116.         }
  117.         return $this;
  118.     }
  119.     public function getDetails(): ?string
  120.     {
  121.         return $this->details;
  122.     }
  123.     public function setDetails(?string $details): self
  124.     {
  125.         $this->details $details;
  126.         return $this;
  127.     }
  128.     public function getTarget(): ?string
  129.     {
  130.         return $this->target;
  131.     }
  132.     public function setTarget(?string $target): self
  133.     {
  134.         $this->target $target;
  135.         return $this;
  136.     }
  137.     public function getDuration(): ?string
  138.     {
  139.         return $this->duration;
  140.     }
  141.     public function setDuration(?string $duration): self
  142.     {
  143.         $this->duration $duration;
  144.         return $this;
  145.     }
  146.     public function getCost(): ?string
  147.     {
  148.         return $this->cost;
  149.     }
  150.     public function setCost(?string $cost): self
  151.     {
  152.         $this->cost $cost;
  153.         return $this;
  154.     }
  155.     public function getDomain(): ?Domains
  156.     {
  157.         return $this->domain;
  158.     }
  159.     public function setDomain(?Domains $domain): self
  160.     {
  161.         $this->domain $domain;
  162.         return $this;
  163.     }
  164.     public function getMainObjective(): ?string
  165.     {
  166.         return $this->mainObjective;
  167.     }
  168.     public function setMainObjective(?string $mainObjective): self
  169.     {
  170.         $this->mainObjective $mainObjective;
  171.         return $this;
  172.     }
  173.     public function getSpecificsObjectives(): ?string
  174.     {
  175.         return $this->specificsObjectives;
  176.     }
  177.     public function setSpecificsObjectives(?string $specificsObjectives): self
  178.     {
  179.         $this->specificsObjectives $specificsObjectives;
  180.         return $this;
  181.     }
  182. }