src/Entity/FormationDocument.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormationDocumentRepository;
  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=FormationDocumentRepository::class)
  9.  */
  10. class FormationDocument
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=TypeDocument::class, inversedBy="formationDocuments")
  20.      */
  21.     private $typeDocument;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $fichierDocument
  26.     /**
  27.     * @Vich\UploadableField(mapping="fichierDocument", fileNameProperty="fileDiplome")
  28.     */
  29.     private $fichier;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Formation::class, inversedBy="document")
  32.      */
  33.     private $formation;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getTypeDocument(): ?TypeDocument
  39.     {
  40.         return $this->typeDocument;
  41.     }
  42.     public function setTypeDocument(?TypeDocument $typeDocument): self
  43.     {
  44.         $this->typeDocument $typeDocument;
  45.         return $this;
  46.     }
  47.     public function getFichierDocument(): ?string
  48.     {
  49.         return $this->fichierDocument;
  50.     }
  51.     public function setFichierDocument(string $fichierDocument): self
  52.     {
  53.         $this->fichierDocument $fichierDocument;
  54.         return $this;
  55.     }
  56.     public function getFormation(): ?Formation
  57.     {
  58.         return $this->formation;
  59.     }
  60.     public function setFormation(?Formation $formation): self
  61.     {
  62.         $this->formation $formation;
  63.         return $this;
  64.     } 
  65.     public function getFichier()
  66.     {
  67.        return $this->fichier
  68.     }
  69.     public function setFichier(?File $image null)
  70.     {
  71.         $this->fichier $image;
  72.     }
  73. }