src/Entity/Referentiel/TrancheHoraire.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Referentiel;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Commun\EstActifTrait;
  5. use JsonSerializable;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\Referentiel\TrancheHoraireRepository")
  8.  * @ORM\Table(name="efc.ref_tranche_horaire")
  9.  */
  10. class TrancheHoraire implements JsonSerializable
  11. {
  12.     use EstActifTrait;
  13.     // <editor-fold defaultstate="collapsed" desc="Attributs privés">
  14.     /**
  15.      * Auto-inc car pas d'ENUM (possibilité IHM un jour ?)
  16.      * 
  17.      * @ORM\Column(type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", length=20)
  24.      */
  25.     private $libelle;
  26.     /**
  27.      * @ORM\Column(type="string", length=100)
  28.      */
  29.     private $description;
  30.     // </editor-fold>
  31.     // <editor-fold desc="Accesseurs">
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return integer
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function setId($id)
  42.     {
  43.         $this->id $id;
  44.         return $id;
  45.     }
  46.     /**
  47.      * Set libelle
  48.      *
  49.      * @param string $libelle
  50.      *
  51.      * @return SecteurPmi
  52.      */
  53.     public function setLibelle($libelle)
  54.     {
  55.         $this->libelle $libelle;
  56.         return $this;
  57.     }
  58.     /**
  59.      * Get libelle
  60.      *
  61.      * @return string
  62.      */
  63.     public function getLibelle()
  64.     {
  65.         return $this->libelle;
  66.     }
  67.     /**
  68.      * Set description
  69.      *
  70.      * @param string $description
  71.      *
  72.      * @return TrancheHoraire
  73.      */
  74.     public function setDescription($description)
  75.     {
  76.         $this->description $description;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get description
  81.      *
  82.      * @return string
  83.      */
  84.     public function getDescription()
  85.     {
  86.         return $this->description;
  87.     }
  88.     // </editor-fold>
  89.     // <editor-fold desc="Méthodes publiques">
  90.     /**
  91.      * Constructor
  92.      */
  93.     public function __construct()
  94.     { }
  95.     /*
  96.      * 
  97.      */
  98.     public function __toString()
  99.     {
  100.         return $this->libelle;
  101.     }
  102.     /*
  103.      * Implémentation de JsonSerializable
  104.      * Ne liste que les champs modifiables par les utilisateurs
  105.      */
  106.     public function jsonSerialize()
  107.     {
  108.         return $this->libelle;
  109.     }
  110.     // </editor-fold>
  111. }