src/Entity/DureeSejour.php line 8

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