<?php
namespace App\Entity;
use App\Repository\DiplomeRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\Entity(repositoryClass=DiplomeRepository::class)
*/
class Diplome
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Session::class, inversedBy="diplomes")
* @ORM\JoinColumn(nullable=false)
*/
private $session;
/**
* @ORM\ManyToOne(targetEntity=Inscrit::class, inversedBy="diplomes")
* @ORM\JoinColumn(nullable=false)
*/
private $inscrit;
/**
* @ORM\ManyToOne(targetEntity=Formateur::class)
*/
private $formateur;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cartepro;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ssiaptype;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $ssiapdatediplomeinitial;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ssiapnumerodiplome;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $ssiapdatediplomeencour;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ssiapbacpro;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $recranpremierdiplome;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $recrandate;
/**
* @ORM\Column(type="boolean")
*/
private $isdelete;
/**
* @ORM\Column(type="string", length=255)
*/
private $numerodiplome;
/**
* @ORM\Column(type="datetime")
*/
private $createdat;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedat;
/**
* @ORM\ManyToOne(targetEntity=Site::class, inversedBy="diplomes")
*/
private $site;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $libelleh0b0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $testdiplome;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isAvailable;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $fileDiplome;
/**
* @Vich\UploadableField(mapping="diplome_file", fileNameProperty="fileDiplome")
*/
private $fichier;
public function getId(): ?int
{
return $this->id;
}
public function getSession(): ?Session
{
return $this->session;
}
public function setSession(?Session $session): self
{
$this->session = $session;
return $this;
}
public function getInscrit(): ?Inscrit
{
return $this->inscrit;
}
public function setInscrit(?Inscrit $inscrit): self
{
$this->inscrit = $inscrit;
return $this;
}
public function getFormateur(): ?Formateur
{
return $this->formateur;
}
public function setFormateur(?Formateur $formateur): self
{
$this->formateur = $formateur;
return $this;
}
public function getCartepro(): ?string
{
return $this->cartepro;
}
public function setCartepro(?string $cartepro): self
{
$this->cartepro = $cartepro;
return $this;
}
public function getSsiaptype(): ?int
{
return $this->ssiaptype;
}
public function setSsiaptype(?int $ssiaptype): self
{
$this->ssiaptype = $ssiaptype;
return $this;
}
public function getSsiapdatediplomeinitial(): ?\DateTimeInterface
{
return $this->ssiapdatediplomeinitial;
}
public function setSsiapdatediplomeinitial(?\DateTimeInterface $ssiapdatediplomeinitial): self
{
$this->ssiapdatediplomeinitial = $ssiapdatediplomeinitial;
return $this;
}
public function getSsiapNumerodiplome(): ?string
{
return $this->ssiapnumerodiplome;
}
public function setSsiapNumerodiplome(?string $numerodiplome): self
{
$this->ssiapnumerodiplome = $numerodiplome;
return $this;
}
public function getSsiapdatediplomeencour(): ?\DateTimeInterface
{
return $this->ssiapdatediplomeencour;
}
public function setSsiapdatediplomeencour(?\DateTimeInterface $ssiapdatediplomeencour): self
{
$this->ssiapdatediplomeencour = $ssiapdatediplomeencour;
return $this;
}
public function getSsiapbacpro(): ?string
{
return $this->ssiapbacpro;
}
public function setSsiapbacpro(string $ssiapbacpro): self
{
$this->ssiapbacpro = $ssiapbacpro;
return $this;
}
public function getRecranpremierdiplome(): ?string
{
return $this->recranpremierdiplome;
}
public function setRecranpremierdiplome(?string $recranpremierdiplome): self
{
$this->recranpremierdiplome = $recranpremierdiplome;
return $this;
}
public function getRecrandate(): ?\DateTimeInterface
{
return $this->recrandate;
}
public function setRecrandate(?\DateTimeInterface $recrandate): self
{
$this->recrandate = $recrandate;
return $this;
}
public function isIsdelete(): ?bool
{
return $this->isdelete;
}
public function setIsdelete(bool $isdelete): self
{
$this->isdelete = $isdelete;
return $this;
}
public function getNumerodiplome(): ?string
{
return $this->numerodiplome;
}
public function setNumerodiplome(string $numerodiplome): self
{
$this->numerodiplome = $numerodiplome;
return $this;
}
public function getCreatedat(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedat(\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function getUpdatedat(): ?\DateTimeInterface
{
return $this->updatedat;
}
public function setUpdatedat(?\DateTimeInterface $updatedat): self
{
$this->updatedat = $updatedat;
return $this;
}
public function getSite(): ?Site
{
return $this->site;
}
public function setSite(?Site $site): self
{
$this->site = $site;
return $this;
}
public function getLibelleh0b0(): ?string
{
return $this->libelleh0b0;
}
public function setLibelleh0b0(?string $libelleh0b0): self
{
$this->libelleh0b0 = $libelleh0b0;
return $this;
}
public function isTestdiplome(): ?bool
{
return $this->testdiplome;
}
public function setTestdiplome(?bool $testdiplome): self
{
$this->testdiplome = $testdiplome;
return $this;
}
public function isIsAvailable(): ?bool
{
return $this->isAvailable;
}
public function setIsAvailable(?bool $isAvailable): self
{
$this->isAvailable = $isAvailable;
return $this;
}
public function getFileDiplome(): ?string
{
return $this->fileDiplome;
}
public function setFileDiplome(?string $fileDiplome): self
{
$this->fileDiplome = $fileDiplome;
return $this;
}
public function getFichier()
{
return $this->fichier;
}
public function setFichier(?File $image = null)
{
$this->fichier = $image;
}
}