src/Entity/Commune.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5.  * Commune.
  6.  */
  7. class Commune
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $titre;
  17.     /**
  18.      * @var int
  19.      */
  20.     private $idBdOrigine;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $code;
  25.     /**
  26.      * @var string
  27.      */
  28.     private $description;
  29.     /**
  30.      * @var int
  31.      */
  32.     private $rang;
  33.     /**
  34.      * @var string
  35.      */
  36.     private $codePostal;
  37.     /**
  38.      * @var \Doctrine\Common\Collections\Collection
  39.      */
  40.     private $Adresse;
  41.     /**
  42.      * @var \App\Entity\Pays
  43.      */
  44.     private $Pays;
  45.     /**
  46.      * @var \App\Entity\Canton
  47.      */
  48.     private $Canton;
  49.     /**
  50.      * @var \App\Entity\Departement
  51.      */
  52.     private $Departement;
  53.     /**
  54.      * Constructor.
  55.      */
  56.     public function __construct()
  57.     {
  58.         $this->Adresse = new \Doctrine\Common\Collections\ArrayCollection();
  59.         $this->Participant = new ArrayCollection();
  60.     }
  61.     public function __toString()
  62.     {
  63.         return $this->titre;
  64.     }
  65.     /**
  66.      * Get id.
  67.      *
  68.      * @return int
  69.      */
  70.     public function getId()
  71.     {
  72.         return $this->id;
  73.     }
  74.     /**
  75.      * Set titre.
  76.      *
  77.      * @param string $titre
  78.      *
  79.      * @return Commune
  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 idBdOrigine.
  97.      *
  98.      * @param int $idBdOrigine
  99.      *
  100.      * @return Commune
  101.      */
  102.     public function setIdBdOrigine($idBdOrigine)
  103.     {
  104.         $this->idBdOrigine $idBdOrigine;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get idBdOrigine.
  109.      *
  110.      * @return int
  111.      */
  112.     public function getIdBdOrigine()
  113.     {
  114.         return $this->idBdOrigine;
  115.     }
  116.     /**
  117.      * Set code.
  118.      *
  119.      * @param string $code
  120.      *
  121.      * @return Commune
  122.      */
  123.     public function setCode($code)
  124.     {
  125.         $this->code $code;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get code.
  130.      *
  131.      * @return string
  132.      */
  133.     public function getCode()
  134.     {
  135.         return $this->code;
  136.     }
  137.     /**
  138.      * Set description.
  139.      *
  140.      * @param string $description
  141.      *
  142.      * @return Commune
  143.      */
  144.     public function setDescription($description)
  145.     {
  146.         $this->description $description;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get description.
  151.      *
  152.      * @return string
  153.      */
  154.     public function getDescription()
  155.     {
  156.         return $this->description;
  157.     }
  158.     /**
  159.      * Set rang.
  160.      *
  161.      * @param int $rang
  162.      *
  163.      * @return Commune
  164.      */
  165.     public function setRang($rang)
  166.     {
  167.         $this->rang $rang;
  168.         return $this;
  169.     }
  170.     /**
  171.      * Get rang.
  172.      *
  173.      * @return int
  174.      */
  175.     public function getRang()
  176.     {
  177.         return $this->rang;
  178.     }
  179.     /**
  180.      * Set codePostal.
  181.      *
  182.      * @param string $codePostal
  183.      *
  184.      * @return Commune
  185.      */
  186.     public function setCodePostal($codePostal)
  187.     {
  188.         $this->codePostal $codePostal;
  189.         return $this;
  190.     }
  191.     /**
  192.      * Get codePostal.
  193.      *
  194.      * @return string
  195.      */
  196.     public function getCodePostal()
  197.     {
  198.         return $this->codePostal;
  199.     }
  200.     /**
  201.      * Add adresse.
  202.      *
  203.      * @param \App\Entity\Adresse $adresse
  204.      *
  205.      * @return Commune
  206.      */
  207.     public function addAdresse(Adresse $adresse)
  208.     {
  209.         $this->Adresse[] = $adresse;
  210.         return $this;
  211.     }
  212.     /**
  213.      * Remove adresse.
  214.      *
  215.      * @param \App\Entity\Adresse $adresse
  216.      */
  217.     public function removeAdresse(Adresse $adresse)
  218.     {
  219.         $this->Adresse->removeElement($adresse);
  220.     }
  221.     /**
  222.      * Get adresse.
  223.      *
  224.      * @return \Doctrine\Common\Collections\Collection
  225.      */
  226.     public function getAdresse()
  227.     {
  228.         return $this->Adresse;
  229.     }
  230.     /**
  231.      * Set pays.
  232.      *
  233.      * @param \App\Entity\Pays $pays
  234.      *
  235.      * @return Commune
  236.      */
  237.     public function setPays(Pays $pays null)
  238.     {
  239.         $this->Pays $pays;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get pays.
  244.      *
  245.      * @return \App\Entity\Pays
  246.      */
  247.     public function getPays()
  248.     {
  249.         return $this->Pays;
  250.     }
  251.     /**
  252.      * Set canton.
  253.      *
  254.      * @param \App\Entity\Canton $canton
  255.      *
  256.      * @return Commune
  257.      */
  258.     public function setCanton(Canton $canton null)
  259.     {
  260.         $this->Canton $canton;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get canton.
  265.      *
  266.      * @return \App\Entity\Canton
  267.      */
  268.     public function getCanton()
  269.     {
  270.         return $this->Canton;
  271.     }
  272.     /**
  273.      * Set departement.
  274.      *
  275.      * @param \App\Entity\Departement $departement
  276.      *
  277.      * @return Commune
  278.      */
  279.     public function setDepartement(Departement $departement null)
  280.     {
  281.         $this->Departement $departement;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get departement.
  286.      *
  287.      * @return \App\Entity\Departement
  288.      */
  289.     public function getDepartement()
  290.     {
  291.         return $this->Departement;
  292.     }
  293.     /**
  294.      * @var \Doctrine\Common\Collections\Collection
  295.      */
  296.     private $Participant;
  297.     /**
  298.      * Add participant.
  299.      *
  300.      * @param \App\Entity\Participant $participant
  301.      *
  302.      * @return Commune
  303.      */
  304.     public function addParticipant(Participant $participant)
  305.     {
  306.         $this->Participant[] = $participant;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Remove participant.
  311.      *
  312.      * @param \App\Entity\Participant $participant
  313.      */
  314.     public function removeParticipant(Participant $participant)
  315.     {
  316.         $this->Participant->removeElement($participant);
  317.     }
  318.     /**
  319.      * Get participant.
  320.      *
  321.      * @return \Doctrine\Common\Collections\Collection
  322.      */
  323.     public function getParticipant()
  324.     {
  325.         return $this->Participant;
  326.     }
  327.     /**
  328.      * @var geometry
  329.      */
  330.     private $center;
  331.     /**
  332.      * Set center.
  333.      *
  334.      * @param geometry $center
  335.      *
  336.      * @return Commune
  337.      */
  338.     public function setCenter($center)
  339.     {
  340.         $this->center $center;
  341.         return $this;
  342.     }
  343.     /**
  344.      * Get center.
  345.      *
  346.      * @return geometry
  347.      */
  348.     public function getCenter()
  349.     {
  350.         return $this->center;
  351.     }
  352.     /**
  353.      * @var string
  354.      */
  355.     private $codeCommuneFusionnee;
  356.     /**
  357.      * @var string
  358.      */
  359.     private $nomCommuneFusionnee;
  360.     /**
  361.      * Set codeCommuneFusionnee.
  362.      *
  363.      * @param string $codeCommuneFusionnee
  364.      *
  365.      * @return Commune
  366.      */
  367.     public function setCodeCommuneFusionnee($codeCommuneFusionnee)
  368.     {
  369.         $this->codeCommuneFusionnee $codeCommuneFusionnee;
  370.         return $this;
  371.     }
  372.     /**
  373.      * Get codeCommuneFusionnee.
  374.      *
  375.      * @return string
  376.      */
  377.     public function getCodeCommuneFusionnee()
  378.     {
  379.         return $this->codeCommuneFusionnee;
  380.     }
  381.     /**
  382.      * Set nomCommuneFusionnee.
  383.      *
  384.      * @param string $nomCommuneFusionnee
  385.      *
  386.      * @return Commune
  387.      */
  388.     public function setNomCommuneFusionnee($nomCommuneFusionnee)
  389.     {
  390.         $this->nomCommuneFusionnee $nomCommuneFusionnee;
  391.         return $this;
  392.     }
  393.     /**
  394.      * Get nomCommuneFusionnee.
  395.      *
  396.      * @return string
  397.      */
  398.     public function getNomCommuneFusionnee()
  399.     {
  400.         return $this->nomCommuneFusionnee;
  401.     }
  402.     /**
  403.      * @var string
  404.      */
  405.     private $geometriePolygone;
  406.     /**
  407.      * Set geometriePolygone.
  408.      *
  409.      * @param string $geometriePolygone
  410.      *
  411.      * @return Commune
  412.      */
  413.     public function setGeometriePolygone($geometriePolygone)
  414.     {
  415.         $this->geometriePolygone $geometriePolygone;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get geometriePolygone.
  420.      *
  421.      * @return string
  422.      */
  423.     public function getGeometriePolygone()
  424.     {
  425.         return $this->geometriePolygone;
  426.     }
  427. }