<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
/**
* TypeEtablissement.
*/
class TypeEtablissement
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Etablissment;
/**
* Constructor.
*/
public function __construct()
{
$this->Etablissment = new ArrayCollection();
}
public function __toString()
{
return $this->titre.'';
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return TypeEtablissement
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set titre.
*
* @param string $titre
*
* @return TypeEtablissement
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set description.
*
* @param string $description
*
* @return TypeEtablissement
*/
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 TypeEtablissement
*/
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 TypeEtablissement
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Add etablissment.
*
* @param \App\Entity\Etablissement $etablissment
*
* @return TypeEtablissement
*/
public function addEtablissment(Etablissement $etablissment)
{
$this->Etablissment[] = $etablissment;
return $this;
}
/**
* Remove etablissment.
*
* @param \App\Entity\Etablissement $etablissment
*/
public function removeEtablissment(Etablissement $etablissment)
{
$this->Etablissment->removeElement($etablissment);
}
/**
* Get etablissment.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getEtablissment()
{
return $this->Etablissment;
}
}