src/Entity/Gestiform/Formations/Catalogue/Certification.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Formations\Catalogue;
  3. use App\Entity\Gestiform\Formations\Catalogue\Module\Module;
  4. use App\Entity\Gestiform\Formations\Catalogue\Theme\Theme;
  5. use App\Repository\Gestiform\Formations\Catalogue\CertificationRepository;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity(repositoryClass=CertificationRepository::class)
  11.  * @ORM\Table(name="certification")
  12.  */
  13. class Certification extends Module
  14. {
  15.     /**
  16.      * @ORM\Column(type="datetime", length=255, nullable=true)
  17.      */
  18.     private ?\DateTime $dateInscription null;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private ?string $programme null;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private ?string $certification null;
  27.     /**
  28.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  29.      */
  30.     private ?float $tarifVente null;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=Editeur::class, inversedBy="certifications")
  33.      */
  34.     private Editeur $editeur;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=Theme::class, inversedBy="certifications")
  37.      */
  38.     private Theme $theme;
  39.     /**
  40.      * @ORM\ManyToMany(targetEntity=Module::class, mappedBy="certifications")
  41.      */
  42.     private Collection $modules;
  43.     public function __construct()
  44.     {
  45.         parent::__construct();
  46.         $this->modules = new ArrayCollection();
  47.     }
  48.     public function getDateInscription(): ?\DateTime
  49.     {
  50.         return $this->dateInscription;
  51.     }
  52.     public function setDateInscription(?\DateTime $dateinscription): self
  53.     {
  54.         $this->dateInscription $dateinscription;
  55.         return $this;
  56.     }
  57.     public function getEditeur(): ?Editeur
  58.     {
  59.         return $this->editeur;
  60.     }
  61.     public function setEditeur(?Editeur $editeur): self
  62.     {
  63.         $this->editeur $editeur;
  64.         return $this;
  65.     }
  66.     public function getTheme(): ?Theme
  67.     {
  68.         return $this->theme;
  69.     }
  70.     public function setTheme(?Theme $theme): self
  71.     {
  72.         $this->theme $theme;
  73.         return $this;
  74.     }
  75.     public function getProgramme(): ?string
  76.     {
  77.         return $this->programme;
  78.     }
  79.     public function setProgramme(?string $programme): self
  80.     {
  81.         $this->programme $programme;
  82.         return $this;
  83.     }
  84.     public function getTarifVente(): ?float
  85.     {
  86.         return $this->tarifVente;
  87.     }
  88.     public function setTarifVente(?float $tarifVente): self
  89.     {
  90.         $this->tarifVente $tarifVente;
  91.         return $this;
  92.     }
  93.     /**
  94.      * @return Collection<int, Module>
  95.      */
  96.     public function getModules(): Collection
  97.     {
  98.         return $this->modules;
  99.     }
  100.     public function addModule(Module $module): self
  101.     {
  102.         if (!$this->modules->contains($module)) {
  103.             $this->modules->add($module);
  104.         }
  105.         return $this;
  106.     }
  107.     public function removeModule(Module $module): self
  108.     {
  109.         $this->modules->removeElement($module);
  110.         return $this;
  111.     }
  112.     public function getCertification(): ?string
  113.     {
  114.         return $this->certification;
  115.     }
  116.     public function setCertification(?string $certification): self
  117.     {
  118.         $this->certification $certification;
  119.         return $this;
  120.     }
  121. }