<?php
namespace App\Entity;
/**
* DureeSejour.
*/
class DureeSejour
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $MesureEtatsPiecesEchantillonnees;
/**
* Constructor.
*/
public function __construct()
{
$this->MesureEtatsPiecesEchantillonnees = new \Doctrine\Common\Collections\ArrayCollection();
}
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return DureeSejour
*/
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 DureeSejour
*/
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 DureeSejour
*/
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 DureeSejour
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Add mesureEtatsPiecesEchantillonnee.
*
* @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
*
* @return DureeSejour
*/
public function addMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
{
$this->MesureEtatsPiecesEchantillonnees[] = $mesureEtatsPiecesEchantillonnee;
return $this;
}
/**
* Remove mesureEtatsPiecesEchantillonnee.
*
* @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
*/
public function removeMesureEtatsPiecesEchantillonnee(MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee)
{
$this->MesureEtatsPiecesEchantillonnees->removeElement($mesureEtatsPiecesEchantillonnee);
}
/**
* Get mesureEtatsPiecesEchantillonnees.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMesureEtatsPiecesEchantillonnees()
{
return $this->MesureEtatsPiecesEchantillonnees;
}
}