src/Entity/TypeEtablissement.php line 10

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