src/Entity/PeriodeMesure.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * PeriodeMesure.
  5.  */
  6. class PeriodeMesure
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $code;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $titre;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $description;
  24.     /**
  25.      * @var int
  26.      */
  27.     private $rang;
  28.     /**
  29.      *    toString.
  30.      *
  31.      *    @return string
  32.      */
  33.     public function __toString()
  34.     {
  35.         return $this->titre;
  36.     }
  37.     /**
  38.      * Get id.
  39.      *
  40.      * @return int
  41.      */
  42.     public function getId()
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * Set code.
  48.      *
  49.      * @param string $code
  50.      *
  51.      * @return PeriodeMesure
  52.      */
  53.     public function setCode($code)
  54.     {
  55.         $this->code $code;
  56.         return $this;
  57.     }
  58.     /**
  59.      * Get code.
  60.      *
  61.      * @return string
  62.      */
  63.     public function getCode()
  64.     {
  65.         return $this->code;
  66.     }
  67.     /**
  68.      * Set titre.
  69.      *
  70.      * @param string $titre
  71.      *
  72.      * @return PeriodeMesure
  73.      */
  74.     public function setTitre($titre)
  75.     {
  76.         $this->titre $titre;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get titre.
  81.      *
  82.      * @return string
  83.      */
  84.     public function getTitre()
  85.     {
  86.         return $this->titre;
  87.     }
  88.     /**
  89.      * Set description.
  90.      *
  91.      * @param string $description
  92.      *
  93.      * @return PeriodeMesure
  94.      */
  95.     public function setDescription($description)
  96.     {
  97.         $this->description $description;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get description.
  102.      *
  103.      * @return string
  104.      */
  105.     public function getDescription()
  106.     {
  107.         return $this->description;
  108.     }
  109.     /**
  110.      * Set rang.
  111.      *
  112.      * @param int $rang
  113.      *
  114.      * @return PeriodeMesure
  115.      */
  116.     public function setRang($rang)
  117.     {
  118.         $this->rang $rang;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get rang.
  123.      *
  124.      * @return int
  125.      */
  126.     public function getRang()
  127.     {
  128.         return $this->rang;
  129.     }
  130.     /**
  131.      * @var \Doctrine\Common\Collections\Collection
  132.      */
  133.     private $Mesure;
  134.     /**
  135.      * Constructor.
  136.      */
  137.     public function __construct()
  138.     {
  139.         $this->Mesure = new \Doctrine\Common\Collections\ArrayCollection();
  140.     }
  141.     /**
  142.      * Add mesure.
  143.      *
  144.      * @param \App\Entity\Mesure $mesure
  145.      *
  146.      * @return PeriodeMesure
  147.      */
  148.     public function addMesure(Mesure $mesure)
  149.     {
  150.         $this->Mesure[] = $mesure;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Remove mesure.
  155.      *
  156.      * @param \App\Entity\Mesure $mesure
  157.      */
  158.     public function removeMesure(Mesure $mesure)
  159.     {
  160.         $this->Mesure->removeElement($mesure);
  161.     }
  162.     /**
  163.      * Get mesure.
  164.      *
  165.      * @return \Doctrine\Common\Collections\Collection
  166.      */
  167.     public function getMesure()
  168.     {
  169.         return $this->Mesure;
  170.     }
  171. }