src/Entity/TypeMesure.php line 10

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