src/Entity/TypeEscalier.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5.  * TypeEscalier.
  6.  */
  7. class TypeEscalier
  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.      * Constructor.
  39.      */
  40.     public function __construct()
  41.     {
  42.         $this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
  43.         $this->BatimentEscalierImmeuble = 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 TypeEscalier
  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 TypeEscalier
  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 TypeEscalier
  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 rang.
  123.      *
  124.      * @param int $rang
  125.      *
  126.      * @return TypeEscalier
  127.      */
  128.     public function setRang($rang)
  129.     {
  130.         $this->rang $rang;
  131.         return $this;
  132.     }
  133.     /**
  134.      * Get rang.
  135.      *
  136.      * @return int
  137.      */
  138.     public function getRang()
  139.     {
  140.         return $this->rang;
  141.     }
  142.     /**
  143.      * Set idBdOrigine.
  144.      *
  145.      * @param int $idBdOrigine
  146.      *
  147.      * @return TypeEscalier
  148.      */
  149.     public function setIdBdOrigine($idBdOrigine)
  150.     {
  151.         $this->idBdOrigine $idBdOrigine;
  152.         return $this;
  153.     }
  154.     /**
  155.      * Get idBdOrigine.
  156.      *
  157.      * @return int
  158.      */
  159.     public function getIdBdOrigine()
  160.     {
  161.         return $this->idBdOrigine;
  162.     }
  163.     /**
  164.      * Add batiment.
  165.      *
  166.      * @param \App\Entity\Batiment $batiment
  167.      *
  168.      * @return TypeEscalier
  169.      */
  170.     public function addBatiment(Batiment $batiment)
  171.     {
  172.         $this->Batiment[] = $batiment;
  173.         return $this;
  174.     }
  175.     /**
  176.      * Remove batiment.
  177.      *
  178.      * @param \App\Entity\Batiment $batiment
  179.      */
  180.     public function removeBatiment(Batiment $batiment)
  181.     {
  182.         $this->Batiment->removeElement($batiment);
  183.     }
  184.     /**
  185.      * Get batiment.
  186.      *
  187.      * @return \Doctrine\Common\Collections\Collection
  188.      */
  189.     public function getBatiment()
  190.     {
  191.         return $this->Batiment;
  192.     }
  193.     /**
  194.      * @var string
  195.      */
  196.     private $discriminator;
  197.     /**
  198.      * @var \Doctrine\Common\Collections\Collection
  199.      */
  200.     private $BatimentEscalierImmeuble;
  201.     /**
  202.      * Set discriminator.
  203.      *
  204.      * @param string $discriminator
  205.      *
  206.      * @return TypeEscalier
  207.      */
  208.     public function setDiscriminator($discriminator)
  209.     {
  210.         $this->discriminator $discriminator;
  211.         return $this;
  212.     }
  213.     /**
  214.      * Get discriminator.
  215.      *
  216.      * @return string
  217.      */
  218.     public function getDiscriminator()
  219.     {
  220.         return $this->discriminator;
  221.     }
  222.     /**
  223.      * Add batimentEscalierImmeuble.
  224.      *
  225.      * @param \App\Entity\Batiment $batimentEscalierImmeuble
  226.      *
  227.      * @return TypeEscalier
  228.      */
  229.     public function addBatimentEscalierImmeuble(Batiment $batimentEscalierImmeuble)
  230.     {
  231.         $this->BatimentEscalierImmeuble[] = $batimentEscalierImmeuble;
  232.         return $this;
  233.     }
  234.     /**
  235.      * Remove batimentEscalierImmeuble.
  236.      *
  237.      * @param \App\Entity\Batiment $batimentEscalierImmeuble
  238.      */
  239.     public function removeBatimentEscalierImmeuble(Batiment $batimentEscalierImmeuble)
  240.     {
  241.         $this->BatimentEscalierImmeuble->removeElement($batimentEscalierImmeuble);
  242.     }
  243.     /**
  244.      * Get batimentEscalierImmeuble.
  245.      *
  246.      * @return \Doctrine\Common\Collections\Collection
  247.      */
  248.     public function getBatimentEscalierImmeuble()
  249.     {
  250.         return $this->BatimentEscalierImmeuble;
  251.     }
  252. }