src/Entity/TelechargementsFichiers.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * TelechargementsFichiers
  6.  *
  7.  * @ORM\Table(name="telechargements_fichiers", indexes={@ORM\Index(name="relation", columns={"id_Categorie"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\TelechargementsFichiersRepository")
  9.  */
  10. class TelechargementsFichiers
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id_fichier", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idFichier;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="titre_fichier", type="text", length=65535, nullable=false)
  24.      */
  25.     private $titreFichier;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="text_fichier", type="text", length=65535, nullable=false)
  30.      */
  31.     private $textFichier;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="type_fichier", type="string", length=150, nullable=false)
  36.      */
  37.     private $typeFichier;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="nom_fichier", type="text", length=65535, nullable=false)
  42.      */
  43.     private $nomFichier;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="role_need_to_dl", type="text", length=65535, nullable=false)
  48.      */
  49.     private $roleNeedToDl;
  50.     /**
  51.      * @var int
  52.      *
  53.      * @ORM\Column(name="ordre", type="integer", nullable=false)
  54.      */
  55.     private $ordre;
  56.     /**
  57.      * @var \TelechargementsCategorie
  58.      *
  59.      * @ORM\ManyToOne(targetEntity="TelechargementsCategorie")
  60.      * @ORM\JoinColumns({
  61.      *   @ORM\JoinColumn(name="id_Categorie", referencedColumnName="id_categorie")
  62.      * })
  63.      */
  64.     private $idCategorie;
  65.     public function getIdFichier(): ?int
  66.     {
  67.         return $this->idFichier;
  68.     }
  69.     public function getTitreFichier(): ?string
  70.     {
  71.         return $this->titreFichier;
  72.     }
  73.     public function setTitreFichier(string $titreFichier): self
  74.     {
  75.         $this->titreFichier $titreFichier;
  76.         return $this;
  77.     }
  78.     public function getTextFichier(): ?string
  79.     {
  80.         return $this->textFichier;
  81.     }
  82.     public function setTextFichier(string $textFichier): self
  83.     {
  84.         $this->textFichier $textFichier;
  85.         return $this;
  86.     }
  87.     public function getTypeFichier(): ?string
  88.     {
  89.         return $this->typeFichier;
  90.     }
  91.     public function setTypeFichier(string $typeFichier): self
  92.     {
  93.         $this->typeFichier $typeFichier;
  94.         return $this;
  95.     }
  96.     public function getNomFichier(): ?string
  97.     {
  98.         return $this->nomFichier;
  99.     }
  100.     public function setNomFichier(string $nomFichier): self
  101.     {
  102.         $this->nomFichier $nomFichier;
  103.         return $this;
  104.     }
  105.     public function getRoleNeedToDl(): ?string
  106.     {
  107.         return $this->roleNeedToDl;
  108.     }
  109.     public function setRoleNeedToDl(string $roleNeedToDl): self
  110.     {
  111.         $this->roleNeedToDl $roleNeedToDl;
  112.         return $this;
  113.     }
  114.     public function getIdCategorie(): ?TelechargementsCategorie
  115.     {
  116.         return $this->idCategorie;
  117.     }
  118.     public function setIdCategorie(?TelechargementsCategorie $idCategorie): self
  119.     {
  120.         $this->idCategorie $idCategorie;
  121.         return $this;
  122.     }
  123.     /**
  124.      * @return int
  125.      */
  126.     public function getOrdre(): int
  127.     {
  128.         return $this->ordre;
  129.     }
  130.     /**
  131.      * @param int $ordre
  132.      */
  133.     public function setOrdre(int $ordre): void
  134.     {
  135.         $this->ordre $ordre;
  136.     }
  137. }