src/Entity/Etage.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5.  * Etage.
  6.  */
  7. class Etage
  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 int
  27.      */
  28.     private $rang;
  29.     /**
  30.      * @var int
  31.      */
  32.     private $idBdOrigine;
  33.     /**
  34.      * @var \Doctrine\Common\Collections\Collection
  35.      */
  36.     private $Batiment;
  37.     /**
  38.      * @var \Doctrine\Common\Collections\Collection
  39.      */
  40.     private $ZoneHomegene;
  41.     /**
  42.      * Constructor.
  43.      */
  44.     public function __construct()
  45.     {
  46.         $this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
  47.         $this->ZoneHomegene = new \Doctrine\Common\Collections\ArrayCollection();
  48.         $this->BatimentAppartementImmeuble = new ArrayCollection();
  49.         $this->PieceMesure = new ArrayCollection();
  50.     }
  51.     public function __toString()
  52.     {
  53.         return $this->titre;
  54.     }
  55.     /**
  56.      * Get id.
  57.      *
  58.      * @return int
  59.      */
  60.     public function getId()
  61.     {
  62.         return $this->id;
  63.     }
  64.     /**
  65.      * Set code.
  66.      *
  67.      * @param string $code
  68.      *
  69.      * @return Etage
  70.      */
  71.     public function setCode($code)
  72.     {
  73.         $this->code $code;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get code.
  78.      *
  79.      * @return string
  80.      */
  81.     public function getCode()
  82.     {
  83.         return $this->code;
  84.     }
  85.     /**
  86.      * Set titre.
  87.      *
  88.      * @param string $titre
  89.      *
  90.      * @return Etage
  91.      */
  92.     public function setTitre($titre)
  93.     {
  94.         $this->titre $titre;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get titre.
  99.      *
  100.      * @return string
  101.      */
  102.     public function getTitre()
  103.     {
  104.         return $this->titre;
  105.     }
  106.     /**
  107.      * Set description.
  108.      *
  109.      * @param string $description
  110.      *
  111.      * @return Etage
  112.      */
  113.     public function setDescription($description)
  114.     {
  115.         $this->description $description;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get description.
  120.      *
  121.      * @return string
  122.      */
  123.     public function getDescription()
  124.     {
  125.         return $this->description;
  126.     }
  127.     /**
  128.      * Set rang.
  129.      *
  130.      * @param int $rang
  131.      *
  132.      * @return Etage
  133.      */
  134.     public function setRang($rang)
  135.     {
  136.         $this->rang $rang;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get rang.
  141.      *
  142.      * @return int
  143.      */
  144.     public function getRang()
  145.     {
  146.         return $this->rang;
  147.     }
  148.     /**
  149.      * Set idBdOrigine.
  150.      *
  151.      * @param int $idBdOrigine
  152.      *
  153.      * @return Etage
  154.      */
  155.     public function setIdBdOrigine($idBdOrigine)
  156.     {
  157.         $this->idBdOrigine $idBdOrigine;
  158.         return $this;
  159.     }
  160.     /**
  161.      * Get idBdOrigine.
  162.      *
  163.      * @return int
  164.      */
  165.     public function getIdBdOrigine()
  166.     {
  167.         return $this->idBdOrigine;
  168.     }
  169.     /**
  170.      * Add batiment.
  171.      *
  172.      * @param \App\Entity\Batiment $batiment
  173.      *
  174.      * @return Etage
  175.      */
  176.     public function addBatiment(Batiment $batiment)
  177.     {
  178.         $this->Batiment[] = $batiment;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Remove batiment.
  183.      *
  184.      * @param \App\Entity\Batiment $batiment
  185.      */
  186.     public function removeBatiment(Batiment $batiment)
  187.     {
  188.         $this->Batiment->removeElement($batiment);
  189.     }
  190.     /**
  191.      * Get batiment.
  192.      *
  193.      * @return \Doctrine\Common\Collections\Collection
  194.      */
  195.     public function getBatiment()
  196.     {
  197.         return $this->Batiment;
  198.     }
  199.     /**
  200.      * Add zoneHomegene.
  201.      *
  202.      * @param \App\Entity\ZoneHomogene $zoneHomegene
  203.      *
  204.      * @return Etage
  205.      */
  206.     public function addZoneHomegene(ZoneHomogene $zoneHomegene)
  207.     {
  208.         $this->ZoneHomegene[] = $zoneHomegene;
  209.         return $this;
  210.     }
  211.     /**
  212.      * Remove zoneHomegene.
  213.      *
  214.      * @param \App\Entity\ZoneHomogene $zoneHomegene
  215.      */
  216.     public function removeZoneHomegene(ZoneHomogene $zoneHomegene)
  217.     {
  218.         $this->ZoneHomegene->removeElement($zoneHomegene);
  219.     }
  220.     /**
  221.      * Get zoneHomegene.
  222.      *
  223.      * @return \Doctrine\Common\Collections\Collection
  224.      */
  225.     public function getZoneHomegene()
  226.     {
  227.         return $this->ZoneHomegene;
  228.     }
  229.     /**
  230.      * @var \Doctrine\Common\Collections\Collection
  231.      */
  232.     private $PieceMesure;
  233.     /**
  234.      * Add pieceMesure.
  235.      *
  236.      * @param \App\Entity\PieceMesure $pieceMesure
  237.      *
  238.      * @return Etage
  239.      */
  240.     public function addPieceMesure(PieceMesure $pieceMesure)
  241.     {
  242.         $this->PieceMesure[] = $pieceMesure;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Remove pieceMesure.
  247.      *
  248.      * @param \App\Entity\PieceMesure $pieceMesure
  249.      */
  250.     public function removePieceMesure(PieceMesure $pieceMesure)
  251.     {
  252.         $this->PieceMesure->removeElement($pieceMesure);
  253.     }
  254.     /**
  255.      * Get pieceMesure.
  256.      *
  257.      * @return \Doctrine\Common\Collections\Collection
  258.      */
  259.     public function getPieceMesure()
  260.     {
  261.         return $this->PieceMesure;
  262.     }
  263.     /**
  264.      * @var \Doctrine\Common\Collections\Collection
  265.      */
  266.     private $BatimentAppartementImmeuble;
  267.     /**
  268.      * Add batimentAppartementImmeuble.
  269.      *
  270.      * @param \App\Entity\Batiment $batimentAppartementImmeuble
  271.      *
  272.      * @return Etage
  273.      */
  274.     public function addBatimentAppartementImmeuble(Batiment $batimentAppartementImmeuble)
  275.     {
  276.         $this->BatimentAppartementImmeuble[] = $batimentAppartementImmeuble;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Remove batimentAppartementImmeuble.
  281.      *
  282.      * @param \App\Entity\Batiment $batimentAppartementImmeuble
  283.      */
  284.     public function removeBatimentAppartementImmeuble(Batiment $batimentAppartementImmeuble)
  285.     {
  286.         $this->BatimentAppartementImmeuble->removeElement($batimentAppartementImmeuble);
  287.     }
  288.     /**
  289.      * Get batimentAppartementImmeuble.
  290.      *
  291.      * @return \Doctrine\Common\Collections\Collection
  292.      */
  293.     public function getBatimentAppartementImmeuble()
  294.     {
  295.         return $this->BatimentAppartementImmeuble;
  296.     }
  297. }