src/Entity/TelechargementsCategorie.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * TelechargementsCategorie
  6.  *
  7.  * @ORM\Table(name="telechargements_categorie", indexes={@ORM\Index(name="id_categorie_parente", columns={"id_categorie_parente"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\TelechargementsCategorieRepository")
  9.  */
  10. class TelechargementsCategorie
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id_categorie", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idCategorie;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="nom_categorie", type="text", length=65535, nullable=false)
  24.      */
  25.     private $nomCategorie;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="nom_entreprise", type="string", length=255, nullable=false)
  30.      */
  31.     private $nomEntreprise;
  32.     /**
  33.      * @var int
  34.      *
  35.      * @ORM\Column(name="ordre_categorie", type="integer", nullable=false)
  36.      */
  37.     private $ordreCategorie;
  38.     /**
  39.      * @var \TelechargementsCategorie
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="TelechargementsCategorie")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="id_categorie_parente", referencedColumnName="id_categorie")
  44.      * })
  45.      */
  46.     private $idCategorieParente;
  47.     public function getIdCategorie(): ?int
  48.     {
  49.         return $this->idCategorie;
  50.     }
  51.     public function getNomCategorie(): ?string
  52.     {
  53.         return $this->nomCategorie;
  54.     }
  55.     public function setNomCategorie(string $nomCategorie): self
  56.     {
  57.         $this->nomCategorie $nomCategorie;
  58.         return $this;
  59.     }
  60.     public function getNomEntreprise(): ?string
  61.     {
  62.         return $this->nomEntreprise;
  63.     }
  64.     public function setNomEntreprise(string $nomEntreprise): self
  65.     {
  66.         $this->nomEntreprise $nomEntreprise;
  67.         return $this;
  68.     }
  69.     public function getOrdreCategorie(): ?int
  70.     {
  71.         return $this->ordreCategorie;
  72.     }
  73.     public function setOrdreCategorie(int $ordreCategorie): self
  74.     {
  75.         $this->ordreCategorie $ordreCategorie;
  76.         return $this;
  77.     }
  78.     public function getIdCategorieParente(): ?self
  79.     {
  80.         return $this->idCategorieParente;
  81.     }
  82.     public function setIdCategorieParente(?self $idCategorieParente): self
  83.     {
  84.         $this->idCategorieParente $idCategorieParente;
  85.         return $this;
  86.     }
  87.     public function __toString()
  88.     {
  89.         return $this->nomCategorie;
  90.     }
  91. }