<?php
namespace App\Entity;
/**
* DegatsMoisissure.
*/
class DegatsMoisissure
{
/**
* @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 string
*/
private $discriminator;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $MesureEtatsPiecesEchantillonnees;
/**
* Constructor.
*/
public function __construct()
{
$this->MesureEtatsPiecesEchantillonnees = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* @return string
*/
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return DegatsMoisissure
*/
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 DegatsMoisissure
*/
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 DegatsMoisissure
*/
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 DegatsMoisissure
*/
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 DegatsMoisissure
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Set discriminator.
*
* @param string $discriminator
*
* @return DegatsMoisissure
*/
public function setDiscriminator($discriminator)
{
$this->discriminator = $discriminator;
return $this;
}
/**
* Get discriminator.
*
* @return string
*/
public function getDiscriminator()
{
return $this->discriminator;
}
/**
* Add mesureEtatsPiecesEchantillonnee.
*
* @param \App\Entity\MesureEtatsPiecesEchantillonnees $mesureEtatsPiecesEchantillonnee
*
* @return DegatsMoisissure
*/
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;
}
}