<?php
namespace App\Entity;
use App\Application\Sonata\UserBundle\Entity\User;
/**
* ZoneHomogene.
*/
class ZoneHomogene
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var float
*/
private $surface;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var string
*/
private $entreeAir;
/**
* @var string
*/
private $interfaceSol;
/**
* @var string
*/
private $sourceContenu;
/**
* @var int
*/
private $nombreMesures;
/**
* @var string
*/
private $numero;
/**
* @var string
*/
private $surfaceSource;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $MesureEtatsPiecesEchantillonnees;
/**
* @var \App\Entity\Batiment
*/
private $Batiment;
/**
* @var \App\Entity\Etage
*/
private $Etage;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Mesure;
/**
* Constructor.
*/
public function __construct()
{
$this->MesureEtatsPiecesEchantillonnees = new \Doctrine\Common\Collections\ArrayCollection();
$this->Mesure = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* toString.
*
* @return string
*/
public function __toString()
{
if (is_null($this->titre)) {
if (strlen($this->numero) > 0) {
return $this->numero;
}
return '';
}
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return ZoneHomogene
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set titre.
*
* @param string $titre
*
* @return ZoneHomogene
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set surface.
*
* @param float $surface
*
* @return ZoneHomogene
*/
public function setSurface($surface)
{
$this->surface = $surface;
return $this;
}
/**
* Get surface.
*
* @return float
*/
public function getSurface()
{
return $this->surface;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return ZoneHomogene
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Set entreeAir.
*
* @param string $entreeAir
*
* @return ZoneHomogene
*/
public function setEntreeAir($entreeAir)
{
$this->entreeAir = $entreeAir;
return $this;
}
/**
* Get entreeAir.
*
* @return string
*/
public function getEntreeAir()
{
return $this->entreeAir;
}
/**
* Set interfaceSol.
*
* @param string $interfaceSol
*
* @return ZoneHomogene
*/
public function setInterfaceSol($interfaceSol)
{
$this->interfaceSol = $interfaceSol;
return $this;
}
/**
* Get interfaceSol.
*
* @return string
*/
public function getInterfaceSol()
{
return $this->interfaceSol;
}
/**
* Set sourceContenu.
*
* @param string $sourceContenu
*
* @return ZoneHomogene
*/
public function setSourceContenu($sourceContenu)
{
$this->sourceContenu = $sourceContenu;
return $this;
}
/**
* Get sourceContenu.
*
* @return string
*/
public function getSourceContenu()
{
return $this->sourceContenu;
}
/**
* Set nombreMesures.
*
* @param int $nombreMesures
*
* @return ZoneHomogene
*/
public function setNombreMesures($nombreMesures)
{
$this->nombreMesures = $nombreMesures;
return $this;
}
/**
* Get nombreMesures.
*
* @return int
*/
public function getNombreMesures()
{
return $this->nombreMesures;
}
/**
* Set numero.
*
* @param string $numero
*
* @return ZoneHomogene
*/
public function setNumero($numero)
{
$this->numero = $numero;
return $this;
}
/**
* Get numero.
*
* @return string
*/
public function getNumero()
{
return $this->numero;
}
/**
* Set surfaceSource.
*
* @param string $surfaceSource
*
* @return ZoneHomogene
*/
public function setSurfaceSource($surfaceSource)
{
$this->surfaceSource = $surfaceSource;
return $this;
}
/**
* Get surfaceSource.
*
* @return string
*/
public function getSurfaceSource()
{
return $this->surfaceSource;
}
/**
* Add mesureEtatsPiecesEchantillonnee.
*
* @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
*
* @return ZoneHomogene
*/
public function addMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
{
$this->MesureEtatsPiecesEchantillonnees[] = $mesureEtatsPiecesEchantillonnee;
return $this;
}
/**
* Remove mesureEtatsPiecesEchantillonnee.
*
* @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
*/
public function removeMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
{
$this->MesureEtatsPiecesEchantillonnees->removeElement($mesureEtatsPiecesEchantillonnee);
}
/**
* Get mesureEtatsPiecesEchantillonnees.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMesureEtatsPiecesEchantillonnees()
{
return $this->MesureEtatsPiecesEchantillonnees;
}
/**
* Set batiment.
*
* @param \App\Entity\Batiment $batiment
*
* @return ZoneHomogene
*/
public function setBatiment(Batiment $batiment = null)
{
$this->Batiment = $batiment;
return $this;
}
/**
* Get batiment.
*
* @return \App\Entity\Batiment
*/
public function getBatiment()
{
return $this->Batiment;
}
/**
* Set etage.
*
* @param \App\Entity\Etage $etage
*
* @return ZoneHomogene
*/
public function setEtage(Etage $etage = null)
{
$this->Etage = $etage;
return $this;
}
/**
* Get etage.
*
* @return \App\Entity\Etage
*/
public function getEtage()
{
return $this->Etage;
}
/**
* Add mesure.
*
* @param \App\Entity\Mesure $mesure
*
* @return ZoneHomogene
*/
public function addMesure(Mesure $mesure)
{
$this->Mesure[] = $mesure;
return $this;
}
/**
* Remove mesure.
*
* @param \App\Entity\Mesure $mesure
*/
public function removeMesure(Mesure $mesure)
{
$this->Mesure->removeElement($mesure);
}
/**
* Get mesure.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMesure()
{
return $this->Mesure;
}
/**
* @var \App\Application\Sonata\UserBundle\Entity\User
*/
private $CreatedBy;
/**
* @var \App\Application\Sonata\UserBundle\Entity\User
*/
private $UpdateBy;
/**
* Set createdBy.
*
* @param \App\Application\Sonata\UserBundle\Entity\User $createdBy
*
* @return ZoneHomogene
*/
public function setCreatedBy(User $createdBy = null)
{
$this->CreatedBy = $createdBy;
return $this;
}
/**
* Get createdBy.
*
* @return \App\Application\Sonata\UserBundle\Entity\User
*/
public function getCreatedBy()
{
return $this->CreatedBy;
}
/**
* Set updateBy.
*
* @param \App\Application\Sonata\UserBundle\Entity\User $updateBy
*
* @return ZoneHomogene
*/
public function setUpdateBy(User $updateBy = null)
{
$this->UpdateBy = $updateBy;
return $this;
}
/**
* Get updateBy.
*
* @return \App\Application\Sonata\UserBundle\Entity\User
*/
public function getUpdateBy()
{
return $this->UpdateBy;
}
}