src/Entity/TypeFenetre.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5.  * TypeFenetre.
  6.  */
  7. class TypeFenetre
  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.      * Constructor.
  35.      */
  36.     public function __construct()
  37.     {
  38.         $this->TypeFenetreUtiliser = new ArrayCollection();
  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 TypeFenetre
  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 TypeFenetre
  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 TypeFenetre
  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.      * Set rang.
  118.      *
  119.      * @param int $rang
  120.      *
  121.      * @return TypeFenetre
  122.      */
  123.     public function setRang($rang)
  124.     {
  125.         $this->rang $rang;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get rang.
  130.      *
  131.      * @return int
  132.      */
  133.     public function getRang()
  134.     {
  135.         return $this->rang;
  136.     }
  137.     /**
  138.      * Set idBdOrigine.
  139.      *
  140.      * @param int $idBdOrigine
  141.      *
  142.      * @return TypeFenetre
  143.      */
  144.     public function setIdBdOrigine($idBdOrigine)
  145.     {
  146.         $this->idBdOrigine $idBdOrigine;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get idBdOrigine.
  151.      *
  152.      * @return int
  153.      */
  154.     public function getIdBdOrigine()
  155.     {
  156.         return $this->idBdOrigine;
  157.     }
  158.     /**
  159.      * @var \Doctrine\Common\Collections\Collection
  160.      */
  161.     private $TypeFenetreUtiliser;
  162.     /**
  163.      * Add typeFenetreUtiliser.
  164.      *
  165.      * @param \App\Entity\TypeFenetreUtiliser $typeFenetreUtiliser
  166.      *
  167.      * @return TypeFenetre
  168.      */
  169.     public function addTypeFenetreUtiliser(TypeFenetreUtiliser $typeFenetreUtiliser)
  170.     {
  171.         $this->TypeFenetreUtiliser[] = $typeFenetreUtiliser;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Remove typeFenetreUtiliser.
  176.      *
  177.      * @param \App\Entity\TypeFenetreUtiliser $typeFenetreUtiliser
  178.      */
  179.     public function removeTypeFenetreUtiliser(TypeFenetreUtiliser $typeFenetreUtiliser)
  180.     {
  181.         $this->TypeFenetreUtiliser->removeElement($typeFenetreUtiliser);
  182.     }
  183.     /**
  184.      * Get typeFenetreUtiliser.
  185.      *
  186.      * @return \Doctrine\Common\Collections\Collection
  187.      */
  188.     public function getTypeFenetreUtiliser()
  189.     {
  190.         return $this->TypeFenetreUtiliser;
  191.     }
  192. }