<?php
namespace App\Entity\Common;
use App\Entity\AbstractEntity;
use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
use App\Entity\Gestiform\Admin\ModelsDocument\Template;
use App\Entity\Gestiform\Formations\Catalogue\Module\Module;
use App\Entity\Gestiform\Formations\Catalogue\Module\ModuleCompetence;
use App\Entity\Gestiform\Formations\Catalogue\Parcours\Bloc\BlocCompetence;
use App\Entity\Gestiform\Formations\Catalogue\Parcours\Parcours;
use App\Entity\Gestiform\Formations\Dossier\Dossier;
use App\Entity\Gestiform\Users\Personne;
use App\Repository\Common\DocumentRepository;
use Doctrine\ORM\Mapping as ORM;
use PhpParser\Node\Expr\AssignOp\Mod;
/**
* @ORM\Entity(repositoryClass=DocumentRepository::class)
*/
class Document extends AbstractEntity
{
/**
* @ORM\ManyToOne(targetEntity=Upload::class, cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
*/
private ?Upload $document = null;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private ?string $titre = null;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $valide = null;
/**
* @ORM\ManyToOne(targetEntity=Dossier::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=true)
*/
private ?Dossier $dossier = null;
/**
* @ORM\ManyToOne(targetEntity=Personne::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=true)
*/
private ?Personne $personne = null;
/**
* @ORM\ManyToOne(targetEntity=Parcours::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=true)
*/
private ?Parcours $parcours = null;
/**
* @ORM\ManyToOne(targetEntity=Module::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=true)
*/
private ?Module $module = null;
/**
* @ORM\ManyToOne(targetEntity=Template::class)
* @ORM\JoinColumn(nullable=true)
*/
private ?Template $template = null;
/**
* @ORM\ManyToOne(targetEntity=Masterlistelg::class)
* @ORM\JoinColumn(nullable=true)
*/
private ?Masterlistelg $typeDocument = null;
/**
* @ORM\ManyToOne(targetEntity=ModuleCompetence::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=true)
*/
private ?ModuleCompetence $moduleCompetence = null;
/**
* @ORM\ManyToOne(targetEntity=BlocCompetence::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=true)
*/
private ?BlocCompetence $blocCompetence = null;
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function isValide(): ?bool
{
return $this->valide;
}
public function setValide(?bool $valide): self
{
$this->valide = $valide;
return $this;
}
public function getDossier(): ?Dossier
{
return $this->dossier;
}
public function setDossier(?Dossier $dossier): self
{
$this->dossier = $dossier;
return $this;
}
public function getDocument(): ?Upload
{
return $this->document;
}
public function setDocument(?Upload $document): self
{
$this->document = $document;
return $this;
}
public function getTypeDocument(): ?Masterlistelg
{
return $this->typeDocument;
}
public function setTypeDocument(?Masterlistelg $typeDocument): self
{
$this->typeDocument = $typeDocument;
return $this;
}
public function getPersonne(): ?Personne
{
return $this->personne;
}
public function setPersonne(?Personne $personne): self
{
$this->personne = $personne;
return $this;
}
public function getTemplate(): ?Template
{
return $this->template;
}
public function setTemplate(?Template $template): self
{
$this->template = $template;
return $this;
}
public function getParcours(): ?Parcours
{
return $this->parcours;
}
public function setParcours(?Parcours $parcours): self
{
$this->parcours = $parcours;
return $this;
}
public function getModule(): ?Module
{
return $this->module;
}
public function setModule(?Module $module): self
{
$this->module = $module;
return $this;
}
public function getModuleCompetence(): ?ModuleCompetence
{
return $this->moduleCompetence;
}
public function setModuleCompetence(?ModuleCompetence $moduleCompetence): self
{
$this->moduleCompetence = $moduleCompetence;
return $this;
}
public function getBlocCompetence(): ?BlocCompetence
{
return $this->blocCompetence;
}
public function setBlocCompetence(?BlocCompetence $blocCompetence): self
{
$this->blocCompetence = $blocCompetence;
return $this;
}
}