src/Entity/Parametrage/Module.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Parametrage;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  * TODO : schema parametrage ou pas ?
  7.  * @ORM\Table(name="parametrage.module")
  8.  */
  9. class Module {
  10.     /**
  11.      * @ORM\Column(type="integer")
  12.      * @ORM\Id
  13.      * Pas d'auto-inc car IDs mappés à une enum
  14.      * @see App\Entity\Parametrage\EnumModule
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=70)
  19.      */
  20.     private $libelle;
  21.     /**
  22.      * @ORM\Column(type="boolean")
  23.      */
  24.     private $active;
  25.     /**
  26.      * Get id
  27.      *
  28.      * @return integer
  29.      */
  30.     public function getId() {
  31.         return $this->id;
  32.     }
  33.     /**
  34.      * Set libelle
  35.      *
  36.      * @param string $libelle
  37.      *
  38.      * @return Parametre
  39.      */
  40.     public function setLibelle($libelle) {
  41.         $this->libelle $libelle;
  42.         return $this;
  43.     }
  44.     /**
  45.      * Get libelle
  46.      *
  47.      * @return string
  48.      */
  49.     public function getLibelle() {
  50.         return $this->libelle;
  51.     }
  52.     /**
  53.      * Set active
  54.      *
  55.      * @param boolean $active
  56.      *
  57.      * @return Module
  58.      */
  59.     public function setActive($active=true) {
  60.         $this->active $active;
  61.         return $this;
  62.     }
  63.     /**
  64.      * Get active
  65.      *
  66.      * @return boolean
  67.      */
  68.     public function getActive() {
  69.         return $this->active;
  70.     }
  71. }