<?php
namespace App\Entity;
/**
* Pays.
*/
class Pays
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Commune;
/**
* Constructor.
*/
public function __construct()
{
$this->Commune = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* @return string
*/
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set titre.
*
* @param string $titre
*
* @return Pays
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set code.
*
* @param string $code
*
* @return Pays
*/
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 Pays
*/
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 Pays
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return Pays
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Add commune.
*
* @param \App\Entity\Commune $commune
*
* @return Pays
*/
public function addCommune(Commune $commune)
{
$this->Commune[] = $commune;
return $this;
}
/**
* Remove commune.
*
* @param \App\Entity\Commune $commune
*/
public function removeCommune(Commune $commune)
{
$this->Commune->removeElement($commune);
}
/**
* Get commune.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCommune()
{
return $this->Commune;
}
}