src/Entity/Equipement.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * Equipement.
  5.  */
  6. class Equipement
  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 int
  26.      */
  27.     private $rang;
  28.     /**
  29.      * @var int
  30.      */
  31.     private $idBdOrigine;
  32.     /**
  33.      * @var \Doctrine\Common\Collections\Collection
  34.      */
  35.     private $EquipementsBatiment;
  36.     /**
  37.      * Constructor.
  38.      */
  39.     public function __construct()
  40.     {
  41.         $this->EquipementsBatiment = new \Doctrine\Common\Collections\ArrayCollection();
  42.     }
  43.     public function __toString()
  44.     {
  45.         return $this->titre;
  46.     }
  47.     /**
  48.      * Get id.
  49.      *
  50.      * @return int
  51.      */
  52.     public function getId()
  53.     {
  54.         return $this->id;
  55.     }
  56.     /**
  57.      * Set code.
  58.      *
  59.      * @param string $code
  60.      *
  61.      * @return Equipement
  62.      */
  63.     public function setCode($code)
  64.     {
  65.         $this->code $code;
  66.         return $this;
  67.     }
  68.     /**
  69.      * Get code.
  70.      *
  71.      * @return string
  72.      */
  73.     public function getCode()
  74.     {
  75.         return $this->code;
  76.     }
  77.     /**
  78.      * Set titre.
  79.      *
  80.      * @param string $titre
  81.      *
  82.      * @return Equipement
  83.      */
  84.     public function setTitre($titre)
  85.     {
  86.         $this->titre $titre;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get titre.
  91.      *
  92.      * @return string
  93.      */
  94.     public function getTitre()
  95.     {
  96.         return $this->titre;
  97.     }
  98.     /**
  99.      * Set description.
  100.      *
  101.      * @param string $description
  102.      *
  103.      * @return Equipement
  104.      */
  105.     public function setDescription($description)
  106.     {
  107.         $this->description $description;
  108.         return $this;
  109.     }
  110.     /**
  111.      * Get description.
  112.      *
  113.      * @return string
  114.      */
  115.     public function getDescription()
  116.     {
  117.         return $this->description;
  118.     }
  119.     /**
  120.      * Set rang.
  121.      *
  122.      * @param int $rang
  123.      *
  124.      * @return Equipement
  125.      */
  126.     public function setRang($rang)
  127.     {
  128.         $this->rang $rang;
  129.         return $this;
  130.     }
  131.     /**
  132.      * Get rang.
  133.      *
  134.      * @return int
  135.      */
  136.     public function getRang()
  137.     {
  138.         return $this->rang;
  139.     }
  140.     /**
  141.      * Set idBdOrigine.
  142.      *
  143.      * @param int $idBdOrigine
  144.      *
  145.      * @return Equipement
  146.      */
  147.     public function setIdBdOrigine($idBdOrigine)
  148.     {
  149.         $this->idBdOrigine $idBdOrigine;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Get idBdOrigine.
  154.      *
  155.      * @return int
  156.      */
  157.     public function getIdBdOrigine()
  158.     {
  159.         return $this->idBdOrigine;
  160.     }
  161.     /**
  162.      * Add equipementsBatiment.
  163.      *
  164.      * @param \App\Entity\EquipementsBatiment $equipementsBatiment
  165.      *
  166.      * @return Equipement
  167.      */
  168.     public function addEquipementsBatiment(EquipementsBatiment $equipementsBatiment)
  169.     {
  170.         $this->EquipementsBatiment[] = $equipementsBatiment;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Remove equipementsBatiment.
  175.      *
  176.      * @param \App\Entity\EquipementsBatiment $equipementsBatiment
  177.      */
  178.     public function removeEquipementsBatiment(EquipementsBatiment $equipementsBatiment)
  179.     {
  180.         $this->EquipementsBatiment->removeElement($equipementsBatiment);
  181.     }
  182.     /**
  183.      * Get equipementsBatiment.
  184.      *
  185.      * @return \Doctrine\Common\Collections\Collection
  186.      */
  187.     public function getEquipementsBatiment()
  188.     {
  189.         return $this->EquipementsBatiment;
  190.     }
  191. }