src/Entity/ChauffageBois.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * ChauffageBois.
  5.  */
  6. class ChauffageBois
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $code;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $titre;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $description;
  24.     /**
  25.      * @var int
  26.      */
  27.     private $rang;
  28.     /**
  29.      * @var int
  30.      */
  31.     private $idBdOrigine;
  32.     /**
  33.      * @var \Doctrine\Common\Collections\Collection
  34.      */
  35.     private $ContenantAppareilCombustionBois;
  36.     /**
  37.      * Constructor.
  38.      */
  39.     public function __construct()
  40.     {
  41.         $this->ContenantAppareilCombustionBois = new \Doctrine\Common\Collections\ArrayCollection();
  42.     }
  43.     public function __toString()
  44.     {
  45.         return $this->titre;
  46.     }
  47.     /**
  48.      * Get id.
  49.      *
  50.      * @return int
  51.      */
  52.     public function getId()
  53.     {
  54.         return $this->id;
  55.     }
  56.     /**
  57.      * Set code.
  58.      *
  59.      * @param string $code
  60.      *
  61.      * @return ChauffageBois
  62.      */
  63.     public function setCode($code)
  64.     {
  65.         $this->code $code;
  66.         return $this;
  67.     }
  68.     /**
  69.      * Get code.
  70.      *
  71.      * @return string
  72.      */
  73.     public function getCode()
  74.     {
  75.         return $this->code;
  76.     }
  77.     /**
  78.      * Set titre.
  79.      *
  80.      * @param string $titre
  81.      *
  82.      * @return ChauffageBois
  83.      */
  84.     public function setTitre($titre)
  85.     {
  86.         $this->titre $titre;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get titre.
  91.      *
  92.      * @return string
  93.      */
  94.     public function getTitre()
  95.     {
  96.         return $this->titre;
  97.     }
  98.     /**
  99.      * Set description.
  100.      *
  101.      * @param string $description
  102.      *
  103.      * @return ChauffageBois
  104.      */
  105.     public function setDescription($description)
  106.     {
  107.         $this->description $description;
  108.         return $this;
  109.     }
  110.     /**
  111.      * Get description.
  112.      *
  113.      * @return string
  114.      */
  115.     public function getDescription()
  116.     {
  117.         return $this->description;
  118.     }
  119.     /**
  120.      * Set rang.
  121.      *
  122.      * @param int $rang
  123.      *
  124.      * @return ChauffageBois
  125.      */
  126.     public function setRang($rang)
  127.     {
  128.         $this->rang $rang;
  129.         return $this;
  130.     }
  131.     /**
  132.      * Get rang.
  133.      *
  134.      * @return int
  135.      */
  136.     public function getRang()
  137.     {
  138.         return $this->rang;
  139.     }
  140.     /**
  141.      * Set idBdOrigine.
  142.      *
  143.      * @param int $idBdOrigine
  144.      *
  145.      * @return ChauffageBois
  146.      */
  147.     public function setIdBdOrigine($idBdOrigine)
  148.     {
  149.         $this->idBdOrigine $idBdOrigine;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Get idBdOrigine.
  154.      *
  155.      * @return int
  156.      */
  157.     public function getIdBdOrigine()
  158.     {
  159.         return $this->idBdOrigine;
  160.     }
  161.     /**
  162.      * Add contenantAppareilCombustionBois.
  163.      *
  164.      * @param \App\Entity\ContenantAppareilCombustionBois $contenantAppareilCombustionBois
  165.      *
  166.      * @return ChauffageBois
  167.      */
  168.     public function addContenantAppareilCombustionBois(ContenantAppareilCombustionBois $contenantAppareilCombustionBois)
  169.     {
  170.         $this->ContenantAppareilCombustionBois[] = $contenantAppareilCombustionBois;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Remove contenantAppareilCombustionBois.
  175.      *
  176.      * @param \App\Entity\ContenantAppareilCombustionBois $contenantAppareilCombustionBois
  177.      */
  178.     public function removeContenantAppareilCombustionBois(ContenantAppareilCombustionBois $contenantAppareilCombustionBois)
  179.     {
  180.         $this->ContenantAppareilCombustionBois->removeElement($contenantAppareilCombustionBois);
  181.     }
  182.     /**
  183.      * Get contenantAppareilCombustionBois.
  184.      *
  185.      * @return \Doctrine\Common\Collections\Collection
  186.      */
  187.     public function getContenantAppareilCombustionBois()
  188.     {
  189.         return $this->ContenantAppareilCombustionBois;
  190.     }
  191.     public function addContenantAppareilCombustionBoi(ContenantAppareilCombustionBois $contenantAppareilCombustionBoi): self
  192.     {
  193.         if (!$this->ContenantAppareilCombustionBois->contains($contenantAppareilCombustionBoi)) {
  194.             $this->ContenantAppareilCombustionBois[] = $contenantAppareilCombustionBoi;
  195.             $contenantAppareilCombustionBoi->setChauffageBois($this);
  196.         }
  197.         return $this;
  198.     }
  199.     public function removeContenantAppareilCombustionBoi(ContenantAppareilCombustionBois $contenantAppareilCombustionBoi): self
  200.     {
  201.         if ($this->ContenantAppareilCombustionBois->removeElement($contenantAppareilCombustionBoi)) {
  202.             // set the owning side to null (unless already changed)
  203.             if ($contenantAppareilCombustionBoi->getChauffageBois() === $this) {
  204.                 $contenantAppareilCombustionBoi->setChauffageBois(null);
  205.             }
  206.         }
  207.         return $this;
  208.     }
  209. }