src/Entity/DegatsMoisissure.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * DegatsMoisissure.
  5.  */
  6. class DegatsMoisissure
  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 int
  30.      */
  31.     private $idBdOrigine;
  32.     /**
  33.      * @var string
  34.      */
  35.     private $discriminator;
  36.     /**
  37.      * @var \Doctrine\Common\Collections\Collection
  38.      */
  39.     private $MesureEtatsPiecesEchantillonnees;
  40.     /**
  41.      * Constructor.
  42.      */
  43.     public function __construct()
  44.     {
  45.         $this->MesureEtatsPiecesEchantillonnees = new \Doctrine\Common\Collections\ArrayCollection();
  46.     }
  47.     /**
  48.      * @return string
  49.      */
  50.     public function __toString()
  51.     {
  52.         return $this->titre;
  53.     }
  54.     /**
  55.      * Get id.
  56.      *
  57.      * @return int
  58.      */
  59.     public function getId()
  60.     {
  61.         return $this->id;
  62.     }
  63.     /**
  64.      * Set code.
  65.      *
  66.      * @param string $code
  67.      *
  68.      * @return DegatsMoisissure
  69.      */
  70.     public function setCode($code)
  71.     {
  72.         $this->code $code;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get code.
  77.      *
  78.      * @return string
  79.      */
  80.     public function getCode()
  81.     {
  82.         return $this->code;
  83.     }
  84.     /**
  85.      * Set titre.
  86.      *
  87.      * @param string $titre
  88.      *
  89.      * @return DegatsMoisissure
  90.      */
  91.     public function setTitre($titre)
  92.     {
  93.         $this->titre $titre;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get titre.
  98.      *
  99.      * @return string
  100.      */
  101.     public function getTitre()
  102.     {
  103.         return $this->titre;
  104.     }
  105.     /**
  106.      * Set description.
  107.      *
  108.      * @param string $description
  109.      *
  110.      * @return DegatsMoisissure
  111.      */
  112.     public function setDescription($description)
  113.     {
  114.         $this->description $description;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get description.
  119.      *
  120.      * @return string
  121.      */
  122.     public function getDescription()
  123.     {
  124.         return $this->description;
  125.     }
  126.     /**
  127.      * Set rang.
  128.      *
  129.      * @param int $rang
  130.      *
  131.      * @return DegatsMoisissure
  132.      */
  133.     public function setRang($rang)
  134.     {
  135.         $this->rang $rang;
  136.         return $this;
  137.     }
  138.     /**
  139.      * Get rang.
  140.      *
  141.      * @return int
  142.      */
  143.     public function getRang()
  144.     {
  145.         return $this->rang;
  146.     }
  147.     /**
  148.      * Set idBdOrigine.
  149.      *
  150.      * @param int $idBdOrigine
  151.      *
  152.      * @return DegatsMoisissure
  153.      */
  154.     public function setIdBdOrigine($idBdOrigine)
  155.     {
  156.         $this->idBdOrigine $idBdOrigine;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get idBdOrigine.
  161.      *
  162.      * @return int
  163.      */
  164.     public function getIdBdOrigine()
  165.     {
  166.         return $this->idBdOrigine;
  167.     }
  168.     /**
  169.      * Set discriminator.
  170.      *
  171.      * @param string $discriminator
  172.      *
  173.      * @return DegatsMoisissure
  174.      */
  175.     public function setDiscriminator($discriminator)
  176.     {
  177.         $this->discriminator $discriminator;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get discriminator.
  182.      *
  183.      * @return string
  184.      */
  185.     public function getDiscriminator()
  186.     {
  187.         return $this->discriminator;
  188.     }
  189.     /**
  190.      * Add mesureEtatsPiecesEchantillonnee.
  191.      *
  192.      * @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
  193.      *
  194.      * @return DegatsMoisissure
  195.      */
  196.     public function addMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
  197.     {
  198.         $this->MesureEtatsPiecesEchantillonnees[] = $mesureEtatsPiecesEchantillonnee;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Remove mesureEtatsPiecesEchantillonnee.
  203.      *
  204.      * @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
  205.      */
  206.     public function removeMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
  207.     {
  208.         $this->MesureEtatsPiecesEchantillonnees->removeElement($mesureEtatsPiecesEchantillonnee);
  209.     }
  210.     /**
  211.      * Get mesureEtatsPiecesEchantillonnees.
  212.      *
  213.      * @return \Doctrine\Common\Collections\Collection
  214.      */
  215.     public function getMesureEtatsPiecesEchantillonnees()
  216.     {
  217.         return $this->MesureEtatsPiecesEchantillonnees;
  218.     }
  219. }