src/Entity/Common/Document.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Common;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  5. use App\Entity\Gestiform\Admin\ModelsDocument\Template;
  6. use App\Entity\Gestiform\Formations\Catalogue\Module\Module;
  7. use App\Entity\Gestiform\Formations\Catalogue\Module\ModuleCompetence;
  8. use App\Entity\Gestiform\Formations\Catalogue\Parcours\Bloc\BlocCompetence;
  9. use App\Entity\Gestiform\Formations\Catalogue\Parcours\Parcours;
  10. use App\Entity\Gestiform\Formations\Dossier\Dossier;
  11. use App\Entity\Gestiform\Users\Personne;
  12. use App\Repository\Common\DocumentRepository;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use PhpParser\Node\Expr\AssignOp\Mod;
  15. /**
  16.  * @ORM\Entity(repositoryClass=DocumentRepository::class)
  17.  */
  18. class Document extends AbstractEntity
  19. {
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Upload::class, cascade={"persist"})
  22.      * @ORM\JoinColumn(nullable=true)
  23.      */
  24.     private ?Upload $document null;
  25.     /**
  26.      * @ORM\Column(type="string", length=100, nullable=true)
  27.      */
  28.     private ?string $titre null;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true)
  31.      */
  32.     private ?bool $valide null;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Dossier::class, inversedBy="documents")
  35.      * @ORM\JoinColumn(nullable=true)
  36.      */
  37.     private ?Dossier $dossier null;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Personne::class, inversedBy="documents")
  40.      * @ORM\JoinColumn(nullable=true)
  41.      */
  42.     private ?Personne $personne null;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=Parcours::class, inversedBy="documents")
  45.      * @ORM\JoinColumn(nullable=true)
  46.      */
  47.     private ?Parcours $parcours null;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity=Module::class, inversedBy="documents")
  50.      * @ORM\JoinColumn(nullable=true)
  51.      */
  52.     private ?Module $module null;
  53.     /**
  54.      * @ORM\ManyToOne(targetEntity=Template::class)
  55.      * @ORM\JoinColumn(nullable=true)
  56.      */
  57.     private ?Template $template null;
  58.     /**
  59.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class)
  60.      * @ORM\JoinColumn(nullable=true)
  61.      */
  62.     private ?Masterlistelg $typeDocument null;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity=ModuleCompetence::class, inversedBy="documents")
  65.      * @ORM\JoinColumn(nullable=true)
  66.      */
  67.     private ?ModuleCompetence $moduleCompetence null;
  68.     /**
  69.      * @ORM\ManyToOne(targetEntity=BlocCompetence::class, inversedBy="documents")
  70.      * @ORM\JoinColumn(nullable=true)
  71.      */
  72.     private ?BlocCompetence $blocCompetence null;
  73.     public function getTitre(): ?string
  74.     {
  75.         return $this->titre;
  76.     }
  77.     public function setTitre(?string $titre): self
  78.     {
  79.         $this->titre $titre;
  80.         return $this;
  81.     }
  82.     public function isValide(): ?bool
  83.     {
  84.         return $this->valide;
  85.     }
  86.     public function setValide(?bool $valide): self
  87.     {
  88.         $this->valide $valide;
  89.         return $this;
  90.     }
  91.     public function getDossier(): ?Dossier
  92.     {
  93.         return $this->dossier;
  94.     }
  95.     public function setDossier(?Dossier $dossier): self
  96.     {
  97.         $this->dossier $dossier;
  98.         return $this;
  99.     }
  100.     public function getDocument(): ?Upload
  101.     {
  102.         return $this->document;
  103.     }
  104.     public function setDocument(?Upload $document): self
  105.     {
  106.         $this->document $document;
  107.         return $this;
  108.     }
  109.     public function getTypeDocument(): ?Masterlistelg
  110.     {
  111.         return $this->typeDocument;
  112.     }
  113.     public function setTypeDocument(?Masterlistelg $typeDocument): self
  114.     {
  115.         $this->typeDocument $typeDocument;
  116.         return $this;
  117.     }
  118.     public function getPersonne(): ?Personne
  119.     {
  120.         return $this->personne;
  121.     }
  122.     public function setPersonne(?Personne $personne): self
  123.     {
  124.         $this->personne $personne;
  125.         return $this;
  126.     }
  127.     public function getTemplate(): ?Template
  128.     {
  129.         return $this->template;
  130.     }
  131.     public function setTemplate(?Template $template): self
  132.     {
  133.         $this->template $template;
  134.         return $this;
  135.     }
  136.     public function getParcours(): ?Parcours
  137.     {
  138.         return $this->parcours;
  139.     }
  140.     public function setParcours(?Parcours $parcours): self
  141.     {
  142.         $this->parcours $parcours;
  143.         return $this;
  144.     }
  145.     public function getModule(): ?Module
  146.     {
  147.         return $this->module;
  148.     }
  149.     public function setModule(?Module $module): self
  150.     {
  151.         $this->module $module;
  152.         return $this;
  153.     }
  154.     public function getModuleCompetence(): ?ModuleCompetence
  155.     {
  156.         return $this->moduleCompetence;
  157.     }
  158.     public function setModuleCompetence(?ModuleCompetence $moduleCompetence): self
  159.     {
  160.         $this->moduleCompetence $moduleCompetence;
  161.         return $this;
  162.     }
  163.     public function getBlocCompetence(): ?BlocCompetence
  164.     {
  165.         return $this->blocCompetence;
  166.     }
  167.     public function setBlocCompetence(?BlocCompetence $blocCompetence): self
  168.     {
  169.         $this->blocCompetence $blocCompetence;
  170.         return $this;
  171.     }
  172. }