src/Entity/CategorieMesure.php line 8

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