<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Etage.
*/
class Etage
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Batiment;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $ZoneHomegene;
/**
* Constructor.
*/
public function __construct()
{
$this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
$this->ZoneHomegene = new \Doctrine\Common\Collections\ArrayCollection();
$this->BatimentAppartementImmeuble = new ArrayCollection();
$this->PieceMesure = new ArrayCollection();
}
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return Etage
*/
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 Etage
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set description.
*
* @param string $description
*
* @return Etage
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set rang.
*
* @param int $rang
*
* @return Etage
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return Etage
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Add batiment.
*
* @param \App\Entity\Batiment $batiment
*
* @return Etage
*/
public function addBatiment(Batiment $batiment)
{
$this->Batiment[] = $batiment;
return $this;
}
/**
* Remove batiment.
*
* @param \App\Entity\Batiment $batiment
*/
public function removeBatiment(Batiment $batiment)
{
$this->Batiment->removeElement($batiment);
}
/**
* Get batiment.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatiment()
{
return $this->Batiment;
}
/**
* Add zoneHomegene.
*
* @param \App\Entity\ZoneHomogene $zoneHomegene
*
* @return Etage
*/
public function addZoneHomegene(ZoneHomogene $zoneHomegene)
{
$this->ZoneHomegene[] = $zoneHomegene;
return $this;
}
/**
* Remove zoneHomegene.
*
* @param \App\Entity\ZoneHomogene $zoneHomegene
*/
public function removeZoneHomegene(ZoneHomogene $zoneHomegene)
{
$this->ZoneHomegene->removeElement($zoneHomegene);
}
/**
* Get zoneHomegene.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getZoneHomegene()
{
return $this->ZoneHomegene;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $PieceMesure;
/**
* Add pieceMesure.
*
* @param \App\Entity\PieceMesure $pieceMesure
*
* @return Etage
*/
public function addPieceMesure(PieceMesure $pieceMesure)
{
$this->PieceMesure[] = $pieceMesure;
return $this;
}
/**
* Remove pieceMesure.
*
* @param \App\Entity\PieceMesure $pieceMesure
*/
public function removePieceMesure(PieceMesure $pieceMesure)
{
$this->PieceMesure->removeElement($pieceMesure);
}
/**
* Get pieceMesure.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPieceMesure()
{
return $this->PieceMesure;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $BatimentAppartementImmeuble;
/**
* Add batimentAppartementImmeuble.
*
* @param \App\Entity\Batiment $batimentAppartementImmeuble
*
* @return Etage
*/
public function addBatimentAppartementImmeuble(Batiment $batimentAppartementImmeuble)
{
$this->BatimentAppartementImmeuble[] = $batimentAppartementImmeuble;
return $this;
}
/**
* Remove batimentAppartementImmeuble.
*
* @param \App\Entity\Batiment $batimentAppartementImmeuble
*/
public function removeBatimentAppartementImmeuble(Batiment $batimentAppartementImmeuble)
{
$this->BatimentAppartementImmeuble->removeElement($batimentAppartementImmeuble);
}
/**
* Get batimentAppartementImmeuble.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatimentAppartementImmeuble()
{
return $this->BatimentAppartementImmeuble;
}
}