src/Entity/Typologie.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * Typologie.
  5.  */
  6. class Typologie
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $code;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $titre;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $description;
  24.     /**
  25.      * @var \Doctrine\Common\Collections\Collection
  26.      */
  27.     private $Batiment;
  28.     /**
  29.      * Constructor.
  30.      */
  31.     public function __construct()
  32.     {
  33.         $this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
  34.     }
  35.     /**
  36.      *    toString.
  37.      *
  38.      *    @return string
  39.      */
  40.     public function __toString()
  41.     {
  42.         return $this->titre;
  43.     }
  44.     /**
  45.      * Get id.
  46.      *
  47.      * @return int
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * Set code.
  55.      *
  56.      * @param string $code
  57.      *
  58.      * @return Typologie
  59.      */
  60.     public function setCode($code)
  61.     {
  62.         $this->code $code;
  63.         return $this;
  64.     }
  65.     /**
  66.      * Get code.
  67.      *
  68.      * @return string
  69.      */
  70.     public function getCode()
  71.     {
  72.         return $this->code;
  73.     }
  74.     /**
  75.      * Set titre.
  76.      *
  77.      * @param string $titre
  78.      *
  79.      * @return Typologie
  80.      */
  81.     public function setTitre($titre)
  82.     {
  83.         $this->titre $titre;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get titre.
  88.      *
  89.      * @return string
  90.      */
  91.     public function getTitre()
  92.     {
  93.         return $this->titre;
  94.     }
  95.     /**
  96.      * Set description.
  97.      *
  98.      * @param string $description
  99.      *
  100.      * @return Typologie
  101.      */
  102.     public function setDescription($description)
  103.     {
  104.         $this->description $description;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get description.
  109.      *
  110.      * @return string
  111.      */
  112.     public function getDescription()
  113.     {
  114.         return $this->description;
  115.     }
  116.     /**
  117.      * Add batiment.
  118.      *
  119.      * @param \App\Entity\Batiment $batiment
  120.      *
  121.      * @return Typologie
  122.      */
  123.     public function addBatiment(Batiment $batiment)
  124.     {
  125.         $this->Batiment[] = $batiment;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Remove batiment.
  130.      *
  131.      * @param \App\Entity\Batiment $batiment
  132.      */
  133.     public function removeBatiment(Batiment $batiment)
  134.     {
  135.         $this->Batiment->removeElement($batiment);
  136.     }
  137.     /**
  138.      * Get batiment.
  139.      *
  140.      * @return \Doctrine\Common\Collections\Collection
  141.      */
  142.     public function getBatiment()
  143.     {
  144.         return $this->Batiment;
  145.     }
  146.     /**
  147.      * @var int
  148.      */
  149.     private $rang;
  150.     /**
  151.      * Set rang.
  152.      *
  153.      * @param int $rang
  154.      *
  155.      * @return Typologie
  156.      */
  157.     public function setRang($rang)
  158.     {
  159.         $this->rang $rang;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get rang.
  164.      *
  165.      * @return int
  166.      */
  167.     public function getRang()
  168.     {
  169.         return $this->rang;
  170.     }
  171. }