src/Entity/ZoneHomogene.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Application\Sonata\UserBundle\Entity\User;
  4. /**
  5.  * ZoneHomogene.
  6.  */
  7. class ZoneHomogene
  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 float
  23.      */
  24.     private $surface;
  25.     /**
  26.      * @var int
  27.      */
  28.     private $idBdOrigine;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $entreeAir;
  33.     /**
  34.      * @var string
  35.      */
  36.     private $interfaceSol;
  37.     /**
  38.      * @var string
  39.      */
  40.     private $sourceContenu;
  41.     /**
  42.      * @var int
  43.      */
  44.     private $nombreMesures;
  45.     /**
  46.      * @var string
  47.      */
  48.     private $numero;
  49.     /**
  50.      * @var string
  51.      */
  52.     private $surfaceSource;
  53.     /**
  54.      * @var \Doctrine\Common\Collections\Collection
  55.      */
  56.     private $MesureEtatsPiecesEchantillonnees;
  57.     /**
  58.      * @var \App\Entity\Batiment
  59.      */
  60.     private $Batiment;
  61.     /**
  62.      * @var \App\Entity\Etage
  63.      */
  64.     private $Etage;
  65.     /**
  66.      * @var \Doctrine\Common\Collections\Collection
  67.      */
  68.     private $Mesure;
  69.     /**
  70.      * Constructor.
  71.      */
  72.     public function __construct()
  73.     {
  74.         $this->MesureEtatsPiecesEchantillonnees = new \Doctrine\Common\Collections\ArrayCollection();
  75.         $this->Mesure = new \Doctrine\Common\Collections\ArrayCollection();
  76.     }
  77.     /**
  78.      *    toString.
  79.      *
  80.      *    @return string
  81.      */
  82.     public function __toString()
  83.     {
  84.         if (is_null($this->titre)) {
  85.             if (strlen($this->numero) > 0) {
  86.                 return $this->numero;
  87.             }
  88.             return '';
  89.         }
  90.         return $this->titre;
  91.     }
  92.     /**
  93.      * Get id.
  94.      *
  95.      * @return int
  96.      */
  97.     public function getId()
  98.     {
  99.         return $this->id;
  100.     }
  101.     /**
  102.      * Set code.
  103.      *
  104.      * @param string $code
  105.      *
  106.      * @return ZoneHomogene
  107.      */
  108.     public function setCode($code)
  109.     {
  110.         $this->code $code;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get code.
  115.      *
  116.      * @return string
  117.      */
  118.     public function getCode()
  119.     {
  120.         return $this->code;
  121.     }
  122.     /**
  123.      * Set titre.
  124.      *
  125.      * @param string $titre
  126.      *
  127.      * @return ZoneHomogene
  128.      */
  129.     public function setTitre($titre)
  130.     {
  131.         $this->titre $titre;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get titre.
  136.      *
  137.      * @return string
  138.      */
  139.     public function getTitre()
  140.     {
  141.         return $this->titre;
  142.     }
  143.     /**
  144.      * Set surface.
  145.      *
  146.      * @param float $surface
  147.      *
  148.      * @return ZoneHomogene
  149.      */
  150.     public function setSurface($surface)
  151.     {
  152.         $this->surface $surface;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get surface.
  157.      *
  158.      * @return float
  159.      */
  160.     public function getSurface()
  161.     {
  162.         return $this->surface;
  163.     }
  164.     /**
  165.      * Set idBdOrigine.
  166.      *
  167.      * @param int $idBdOrigine
  168.      *
  169.      * @return ZoneHomogene
  170.      */
  171.     public function setIdBdOrigine($idBdOrigine)
  172.     {
  173.         $this->idBdOrigine $idBdOrigine;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get idBdOrigine.
  178.      *
  179.      * @return int
  180.      */
  181.     public function getIdBdOrigine()
  182.     {
  183.         return $this->idBdOrigine;
  184.     }
  185.     /**
  186.      * Set entreeAir.
  187.      *
  188.      * @param string $entreeAir
  189.      *
  190.      * @return ZoneHomogene
  191.      */
  192.     public function setEntreeAir($entreeAir)
  193.     {
  194.         $this->entreeAir $entreeAir;
  195.         return $this;
  196.     }
  197.     /**
  198.      * Get entreeAir.
  199.      *
  200.      * @return string
  201.      */
  202.     public function getEntreeAir()
  203.     {
  204.         return $this->entreeAir;
  205.     }
  206.     /**
  207.      * Set interfaceSol.
  208.      *
  209.      * @param string $interfaceSol
  210.      *
  211.      * @return ZoneHomogene
  212.      */
  213.     public function setInterfaceSol($interfaceSol)
  214.     {
  215.         $this->interfaceSol $interfaceSol;
  216.         return $this;
  217.     }
  218.     /**
  219.      * Get interfaceSol.
  220.      *
  221.      * @return string
  222.      */
  223.     public function getInterfaceSol()
  224.     {
  225.         return $this->interfaceSol;
  226.     }
  227.     /**
  228.      * Set sourceContenu.
  229.      *
  230.      * @param string $sourceContenu
  231.      *
  232.      * @return ZoneHomogene
  233.      */
  234.     public function setSourceContenu($sourceContenu)
  235.     {
  236.         $this->sourceContenu $sourceContenu;
  237.         return $this;
  238.     }
  239.     /**
  240.      * Get sourceContenu.
  241.      *
  242.      * @return string
  243.      */
  244.     public function getSourceContenu()
  245.     {
  246.         return $this->sourceContenu;
  247.     }
  248.     /**
  249.      * Set nombreMesures.
  250.      *
  251.      * @param int $nombreMesures
  252.      *
  253.      * @return ZoneHomogene
  254.      */
  255.     public function setNombreMesures($nombreMesures)
  256.     {
  257.         $this->nombreMesures $nombreMesures;
  258.         return $this;
  259.     }
  260.     /**
  261.      * Get nombreMesures.
  262.      *
  263.      * @return int
  264.      */
  265.     public function getNombreMesures()
  266.     {
  267.         return $this->nombreMesures;
  268.     }
  269.     /**
  270.      * Set numero.
  271.      *
  272.      * @param string $numero
  273.      *
  274.      * @return ZoneHomogene
  275.      */
  276.     public function setNumero($numero)
  277.     {
  278.         $this->numero $numero;
  279.         return $this;
  280.     }
  281.     /**
  282.      * Get numero.
  283.      *
  284.      * @return string
  285.      */
  286.     public function getNumero()
  287.     {
  288.         return $this->numero;
  289.     }
  290.     /**
  291.      * Set surfaceSource.
  292.      *
  293.      * @param string $surfaceSource
  294.      *
  295.      * @return ZoneHomogene
  296.      */
  297.     public function setSurfaceSource($surfaceSource)
  298.     {
  299.         $this->surfaceSource $surfaceSource;
  300.         return $this;
  301.     }
  302.     /**
  303.      * Get surfaceSource.
  304.      *
  305.      * @return string
  306.      */
  307.     public function getSurfaceSource()
  308.     {
  309.         return $this->surfaceSource;
  310.     }
  311.     /**
  312.      * Add mesureEtatsPiecesEchantillonnee.
  313.      *
  314.      * @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
  315.      *
  316.      * @return ZoneHomogene
  317.      */
  318.     public function addMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
  319.     {
  320.         $this->MesureEtatsPiecesEchantillonnees[] = $mesureEtatsPiecesEchantillonnee;
  321.         return $this;
  322.     }
  323.     /**
  324.      * Remove mesureEtatsPiecesEchantillonnee.
  325.      *
  326.      * @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
  327.      */
  328.     public function removeMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
  329.     {
  330.         $this->MesureEtatsPiecesEchantillonnees->removeElement($mesureEtatsPiecesEchantillonnee);
  331.     }
  332.     /**
  333.      * Get mesureEtatsPiecesEchantillonnees.
  334.      *
  335.      * @return \Doctrine\Common\Collections\Collection
  336.      */
  337.     public function getMesureEtatsPiecesEchantillonnees()
  338.     {
  339.         return $this->MesureEtatsPiecesEchantillonnees;
  340.     }
  341.     /**
  342.      * Set batiment.
  343.      *
  344.      * @param \App\Entity\Batiment $batiment
  345.      *
  346.      * @return ZoneHomogene
  347.      */
  348.     public function setBatiment(Batiment $batiment null)
  349.     {
  350.         $this->Batiment $batiment;
  351.         return $this;
  352.     }
  353.     /**
  354.      * Get batiment.
  355.      *
  356.      * @return \App\Entity\Batiment
  357.      */
  358.     public function getBatiment()
  359.     {
  360.         return $this->Batiment;
  361.     }
  362.     /**
  363.      * Set etage.
  364.      *
  365.      * @param \App\Entity\Etage $etage
  366.      *
  367.      * @return ZoneHomogene
  368.      */
  369.     public function setEtage(Etage $etage null)
  370.     {
  371.         $this->Etage $etage;
  372.         return $this;
  373.     }
  374.     /**
  375.      * Get etage.
  376.      *
  377.      * @return \App\Entity\Etage
  378.      */
  379.     public function getEtage()
  380.     {
  381.         return $this->Etage;
  382.     }
  383.     /**
  384.      * Add mesure.
  385.      *
  386.      * @param \App\Entity\Mesure $mesure
  387.      *
  388.      * @return ZoneHomogene
  389.      */
  390.     public function addMesure(Mesure $mesure)
  391.     {
  392.         $this->Mesure[] = $mesure;
  393.         return $this;
  394.     }
  395.     /**
  396.      * Remove mesure.
  397.      *
  398.      * @param \App\Entity\Mesure $mesure
  399.      */
  400.     public function removeMesure(Mesure $mesure)
  401.     {
  402.         $this->Mesure->removeElement($mesure);
  403.     }
  404.     /**
  405.      * Get mesure.
  406.      *
  407.      * @return \Doctrine\Common\Collections\Collection
  408.      */
  409.     public function getMesure()
  410.     {
  411.         return $this->Mesure;
  412.     }
  413.     /**
  414.      * @var \App\Application\Sonata\UserBundle\Entity\User
  415.      */
  416.     private $CreatedBy;
  417.     /**
  418.      * @var \App\Application\Sonata\UserBundle\Entity\User
  419.      */
  420.     private $UpdateBy;
  421.     /**
  422.      * Set createdBy.
  423.      *
  424.      * @param \App\Application\Sonata\UserBundle\Entity\User $createdBy
  425.      *
  426.      * @return ZoneHomogene
  427.      */
  428.     public function setCreatedBy(User $createdBy null)
  429.     {
  430.         $this->CreatedBy $createdBy;
  431.         return $this;
  432.     }
  433.     /**
  434.      * Get createdBy.
  435.      *
  436.      * @return \App\Application\Sonata\UserBundle\Entity\User
  437.      */
  438.     public function getCreatedBy()
  439.     {
  440.         return $this->CreatedBy;
  441.     }
  442.     /**
  443.      * Set updateBy.
  444.      *
  445.      * @param \App\Application\Sonata\UserBundle\Entity\User $updateBy
  446.      *
  447.      * @return ZoneHomogene
  448.      */
  449.     public function setUpdateBy(User $updateBy null)
  450.     {
  451.         $this->UpdateBy $updateBy;
  452.         return $this;
  453.     }
  454.     /**
  455.      * Get updateBy.
  456.      *
  457.      * @return \App\Application\Sonata\UserBundle\Entity\User
  458.      */
  459.     public function getUpdateBy()
  460.     {
  461.         return $this->UpdateBy;
  462.     }
  463. }