src/Entity/EtatInstrumentMesure.php line 10

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