<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Commune.
*/
class Commune
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $titre;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var string
*/
private $codePostal;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Adresse;
/**
* @var \App\Entity\Pays
*/
private $Pays;
/**
* @var \App\Entity\Canton
*/
private $Canton;
/**
* @var \App\Entity\Departement
*/
private $Departement;
/**
* Constructor.
*/
public function __construct()
{
$this->Adresse = new \Doctrine\Common\Collections\ArrayCollection();
$this->Participant = new ArrayCollection();
}
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set titre.
*
* @param string $titre
*
* @return Commune
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return Commune
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Set code.
*
* @param string $code
*
* @return Commune
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set description.
*
* @param string $description
*
* @return Commune
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set rang.
*
* @param int $rang
*
* @return Commune
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Set codePostal.
*
* @param string $codePostal
*
* @return Commune
*/
public function setCodePostal($codePostal)
{
$this->codePostal = $codePostal;
return $this;
}
/**
* Get codePostal.
*
* @return string
*/
public function getCodePostal()
{
return $this->codePostal;
}
/**
* Add adresse.
*
* @param \App\Entity\Adresse $adresse
*
* @return Commune
*/
public function addAdresse(Adresse $adresse)
{
$this->Adresse[] = $adresse;
return $this;
}
/**
* Remove adresse.
*
* @param \App\Entity\Adresse $adresse
*/
public function removeAdresse(Adresse $adresse)
{
$this->Adresse->removeElement($adresse);
}
/**
* Get adresse.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAdresse()
{
return $this->Adresse;
}
/**
* Set pays.
*
* @param \App\Entity\Pays $pays
*
* @return Commune
*/
public function setPays(Pays $pays = null)
{
$this->Pays = $pays;
return $this;
}
/**
* Get pays.
*
* @return \App\Entity\Pays
*/
public function getPays()
{
return $this->Pays;
}
/**
* Set canton.
*
* @param \App\Entity\Canton $canton
*
* @return Commune
*/
public function setCanton(Canton $canton = null)
{
$this->Canton = $canton;
return $this;
}
/**
* Get canton.
*
* @return \App\Entity\Canton
*/
public function getCanton()
{
return $this->Canton;
}
/**
* Set departement.
*
* @param \App\Entity\Departement $departement
*
* @return Commune
*/
public function setDepartement(Departement $departement = null)
{
$this->Departement = $departement;
return $this;
}
/**
* Get departement.
*
* @return \App\Entity\Departement
*/
public function getDepartement()
{
return $this->Departement;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Participant;
/**
* Add participant.
*
* @param \App\Entity\Participant $participant
*
* @return Commune
*/
public function addParticipant(Participant $participant)
{
$this->Participant[] = $participant;
return $this;
}
/**
* Remove participant.
*
* @param \App\Entity\Participant $participant
*/
public function removeParticipant(Participant $participant)
{
$this->Participant->removeElement($participant);
}
/**
* Get participant.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getParticipant()
{
return $this->Participant;
}
/**
* @var geometry
*/
private $center;
/**
* Set center.
*
* @param geometry $center
*
* @return Commune
*/
public function setCenter($center)
{
$this->center = $center;
return $this;
}
/**
* Get center.
*
* @return geometry
*/
public function getCenter()
{
return $this->center;
}
/**
* @var string
*/
private $codeCommuneFusionnee;
/**
* @var string
*/
private $nomCommuneFusionnee;
/**
* Set codeCommuneFusionnee.
*
* @param string $codeCommuneFusionnee
*
* @return Commune
*/
public function setCodeCommuneFusionnee($codeCommuneFusionnee)
{
$this->codeCommuneFusionnee = $codeCommuneFusionnee;
return $this;
}
/**
* Get codeCommuneFusionnee.
*
* @return string
*/
public function getCodeCommuneFusionnee()
{
return $this->codeCommuneFusionnee;
}
/**
* Set nomCommuneFusionnee.
*
* @param string $nomCommuneFusionnee
*
* @return Commune
*/
public function setNomCommuneFusionnee($nomCommuneFusionnee)
{
$this->nomCommuneFusionnee = $nomCommuneFusionnee;
return $this;
}
/**
* Get nomCommuneFusionnee.
*
* @return string
*/
public function getNomCommuneFusionnee()
{
return $this->nomCommuneFusionnee;
}
/**
* @var string
*/
private $geometriePolygone;
/**
* Set geometriePolygone.
*
* @param string $geometriePolygone
*
* @return Commune
*/
public function setGeometriePolygone($geometriePolygone)
{
$this->geometriePolygone = $geometriePolygone;
return $this;
}
/**
* Get geometriePolygone.
*
* @return string
*/
public function getGeometriePolygone()
{
return $this->geometriePolygone;
}
}