<?php
namespace App\Entity;
/**
* ChauffageBois.
*/
class ChauffageBois
{
/**
* @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 $ContenantAppareilCombustionBois;
/**
* Constructor.
*/
public function __construct()
{
$this->ContenantAppareilCombustionBois = 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 ChauffageBois
*/
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 ChauffageBois
*/
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 ChauffageBois
*/
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 ChauffageBois
*/
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 ChauffageBois
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Add contenantAppareilCombustionBois.
*
* @param \App\Entity\ContenantAppareilCombustionBois $contenantAppareilCombustionBois
*
* @return ChauffageBois
*/
public function addContenantAppareilCombustionBois(ContenantAppareilCombustionBois $contenantAppareilCombustionBois)
{
$this->ContenantAppareilCombustionBois[] = $contenantAppareilCombustionBois;
return $this;
}
/**
* Remove contenantAppareilCombustionBois.
*
* @param \App\Entity\ContenantAppareilCombustionBois $contenantAppareilCombustionBois
*/
public function removeContenantAppareilCombustionBois(ContenantAppareilCombustionBois $contenantAppareilCombustionBois)
{
$this->ContenantAppareilCombustionBois->removeElement($contenantAppareilCombustionBois);
}
/**
* Get contenantAppareilCombustionBois.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContenantAppareilCombustionBois()
{
return $this->ContenantAppareilCombustionBois;
}
public function addContenantAppareilCombustionBoi(ContenantAppareilCombustionBois $contenantAppareilCombustionBoi): self
{
if (!$this->ContenantAppareilCombustionBois->contains($contenantAppareilCombustionBoi)) {
$this->ContenantAppareilCombustionBois[] = $contenantAppareilCombustionBoi;
$contenantAppareilCombustionBoi->setChauffageBois($this);
}
return $this;
}
public function removeContenantAppareilCombustionBoi(ContenantAppareilCombustionBois $contenantAppareilCombustionBoi): self
{
if ($this->ContenantAppareilCombustionBois->removeElement($contenantAppareilCombustionBoi)) {
// set the owning side to null (unless already changed)
if ($contenantAppareilCombustionBoi->getChauffageBois() === $this) {
$contenantAppareilCombustionBoi->setChauffageBois(null);
}
}
return $this;
}
}