src/Entity/Diplome.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DiplomeRepository;
  4. use Doctrine\ORM\Mapping as ORM
  5. use Symfony\Component\HttpFoundation\File\File
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich
  7. /**
  8.  * @ORM\Entity(repositoryClass=DiplomeRepository::class)
  9.  */
  10. class Diplome
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="diplomes")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $session;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Inscrit::class, inversedBy="diplomes")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $inscrit;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Formateur::class)
  30.      */
  31.     private $formateur;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $cartepro;
  36.     /**
  37.      * @ORM\Column(type="integer", nullable=true)
  38.      */
  39.     private $ssiaptype;
  40.     /**
  41.      * @ORM\Column(type="date", nullable=true)
  42.      */
  43.     private $ssiapdatediplomeinitial;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $ssiapnumerodiplome;
  48.     /**
  49.      * @ORM\Column(type="date", nullable=true)
  50.      */
  51.     private $ssiapdatediplomeencour;
  52.     /**
  53.      * @ORM\Column(type="text", nullable=true)
  54.      */
  55.     private $ssiapbacpro;
  56.     /**
  57.      * @ORM\Column(type="string", length=255, nullable=true)
  58.      */
  59.     private $recranpremierdiplome;
  60.     /**
  61.      * @ORM\Column(type="date", nullable=true)
  62.      */
  63.     private $recrandate;
  64.     /**
  65.      * @ORM\Column(type="boolean")
  66.      */
  67.     private $isdelete;
  68.     /**
  69.      * @ORM\Column(type="string", length=255)
  70.      */
  71.     private $numerodiplome;
  72.     /**
  73.      * @ORM\Column(type="datetime")
  74.      */
  75.     private $createdat;
  76.     /**
  77.      * @ORM\Column(type="datetime", nullable=true)
  78.      */
  79.     private $updatedat;
  80.     /**
  81.      * @ORM\ManyToOne(targetEntity=Site::class, inversedBy="diplomes")
  82.      */
  83.     private $site;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $libelleh0b0;
  88.     /**
  89.      * @ORM\Column(type="boolean", nullable=true)
  90.      */
  91.     private $testdiplome;
  92.     /**
  93.      * @ORM\Column(type="boolean", nullable=true)
  94.      */
  95.     private $isAvailable;
  96.     /**
  97.      * @ORM\Column(type="string", length=255, nullable=true)
  98.      */
  99.     private $fileDiplome
  100.     /**
  101.     * @Vich\UploadableField(mapping="diplome_file", fileNameProperty="fileDiplome")
  102.     */
  103.     private $fichier;
  104.     public function getId(): ?int
  105.     {
  106.         return $this->id;
  107.     }
  108.     public function getSession(): ?Session
  109.     {
  110.         return $this->session;
  111.     }
  112.     public function setSession(?Session $session): self
  113.     {
  114.         $this->session $session;
  115.         return $this;
  116.     }
  117.     public function getInscrit(): ?Inscrit
  118.     {
  119.         return $this->inscrit;
  120.     }
  121.     public function setInscrit(?Inscrit $inscrit): self
  122.     {
  123.         $this->inscrit $inscrit;
  124.         return $this;
  125.     }
  126.     public function getFormateur(): ?Formateur
  127.     {
  128.         return $this->formateur;
  129.     }
  130.     public function setFormateur(?Formateur $formateur): self
  131.     {
  132.         $this->formateur $formateur;
  133.         return $this;
  134.     }
  135.     public function getCartepro(): ?string
  136.     {
  137.         return $this->cartepro;
  138.     }
  139.     public function setCartepro(?string $cartepro): self
  140.     {
  141.         $this->cartepro $cartepro;
  142.         return $this;
  143.     }
  144.     public function getSsiaptype(): ?int
  145.     {
  146.         return $this->ssiaptype;
  147.     }
  148.     public function setSsiaptype(?int $ssiaptype): self
  149.     {
  150.         $this->ssiaptype $ssiaptype;
  151.         return $this;
  152.     }
  153.     public function getSsiapdatediplomeinitial(): ?\DateTimeInterface
  154.     {
  155.         return $this->ssiapdatediplomeinitial;
  156.     }
  157.     public function setSsiapdatediplomeinitial(?\DateTimeInterface $ssiapdatediplomeinitial): self
  158.     {
  159.         $this->ssiapdatediplomeinitial $ssiapdatediplomeinitial;
  160.         return $this;
  161.     }
  162.     public function getSsiapNumerodiplome(): ?string
  163.     {
  164.         return $this->ssiapnumerodiplome;
  165.     }
  166.     public function setSsiapNumerodiplome(?string $numerodiplome): self
  167.     {
  168.         $this->ssiapnumerodiplome $numerodiplome;
  169.         return $this;
  170.     }
  171.     public function getSsiapdatediplomeencour(): ?\DateTimeInterface
  172.     {
  173.         return $this->ssiapdatediplomeencour;
  174.     }
  175.     public function setSsiapdatediplomeencour(?\DateTimeInterface $ssiapdatediplomeencour): self
  176.     {
  177.         $this->ssiapdatediplomeencour $ssiapdatediplomeencour;
  178.         return $this;
  179.     }
  180.     public function getSsiapbacpro(): ?string
  181.     {
  182.         return $this->ssiapbacpro;
  183.     }
  184.     public function setSsiapbacpro(string $ssiapbacpro): self
  185.     {
  186.         $this->ssiapbacpro $ssiapbacpro;
  187.         return $this;
  188.     }
  189.     public function getRecranpremierdiplome(): ?string
  190.     {
  191.         return $this->recranpremierdiplome;
  192.     }
  193.     public function setRecranpremierdiplome(?string $recranpremierdiplome): self
  194.     {
  195.         $this->recranpremierdiplome $recranpremierdiplome;
  196.         return $this;
  197.     }
  198.     public function getRecrandate(): ?\DateTimeInterface
  199.     {
  200.         return $this->recrandate;
  201.     }
  202.     public function setRecrandate(?\DateTimeInterface $recrandate): self
  203.     {
  204.         $this->recrandate $recrandate;
  205.         return $this;
  206.     }
  207.     public function isIsdelete(): ?bool
  208.     {
  209.         return $this->isdelete;
  210.     }
  211.     public function setIsdelete(bool $isdelete): self
  212.     {
  213.         $this->isdelete $isdelete;
  214.         return $this;
  215.     }
  216.     public function getNumerodiplome(): ?string
  217.     {
  218.         return $this->numerodiplome;
  219.     }
  220.     public function setNumerodiplome(string $numerodiplome): self
  221.     {
  222.         $this->numerodiplome $numerodiplome;
  223.         return $this;
  224.     }
  225.     public function getCreatedat(): ?\DateTimeInterface
  226.     {
  227.         return $this->createdat;
  228.     }
  229.     public function setCreatedat(\DateTimeInterface $createdat): self
  230.     {
  231.         $this->createdat $createdat;
  232.         return $this;
  233.     }
  234.     public function getUpdatedat(): ?\DateTimeInterface
  235.     {
  236.         return $this->updatedat;
  237.     }
  238.     public function setUpdatedat(?\DateTimeInterface $updatedat): self
  239.     {
  240.         $this->updatedat $updatedat;
  241.         return $this;
  242.     }
  243.     public function getSite(): ?Site
  244.     {
  245.         return $this->site;
  246.     }
  247.     public function setSite(?Site $site): self
  248.     {
  249.         $this->site $site;
  250.         return $this;
  251.     }
  252.     public function getLibelleh0b0(): ?string
  253.     {
  254.         return $this->libelleh0b0;
  255.     }
  256.     public function setLibelleh0b0(?string $libelleh0b0): self
  257.     {
  258.         $this->libelleh0b0 $libelleh0b0;
  259.         return $this;
  260.     }
  261.     public function isTestdiplome(): ?bool
  262.     {
  263.         return $this->testdiplome;
  264.     }
  265.     public function setTestdiplome(?bool $testdiplome): self
  266.     {
  267.         $this->testdiplome $testdiplome;
  268.         return $this;
  269.     }
  270.     public function isIsAvailable(): ?bool
  271.     {
  272.         return $this->isAvailable;
  273.     }
  274.     public function setIsAvailable(?bool $isAvailable): self
  275.     {
  276.         $this->isAvailable $isAvailable;
  277.         return $this;
  278.     }
  279.     public function getFileDiplome(): ?string
  280.     {
  281.         return $this->fileDiplome;
  282.     }
  283.     public function setFileDiplome(?string $fileDiplome): self
  284.     {
  285.         $this->fileDiplome $fileDiplome;
  286.         return $this;
  287.     } 
  288.     public function getFichier()
  289.     {
  290.        return $this->fichier
  291.     }
  292.     public function setFichier(?File $image null)
  293.     {
  294.         $this->fichier $image;
  295.     }
  296. }