src/Entity/Annee.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * Annee.
  5.  */
  6. class Annee
  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 \Doctrine\Common\Collections\Collection
  30.      */
  31.     private $BatimentAnneeExtension;
  32.     /**
  33.      * Constructor.
  34.      */
  35.     public function __construct()
  36.     {
  37.         $this->BatimentAnneeExtension = new \Doctrine\Common\Collections\ArrayCollection();
  38.     }
  39.     /**
  40.      * @return string
  41.      */
  42.     public function __toString()
  43.     {
  44.         return $this->titre;
  45.     }
  46.     /**
  47.      * Get id.
  48.      *
  49.      * @return int
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.     /**
  56.      * Set code.
  57.      *
  58.      * @param string $code
  59.      *
  60.      * @return Annee
  61.      */
  62.     public function setCode($code)
  63.     {
  64.         $this->code $code;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get code.
  69.      *
  70.      * @return string
  71.      */
  72.     public function getCode()
  73.     {
  74.         return $this->code;
  75.     }
  76.     /**
  77.      * Set titre.
  78.      *
  79.      * @param string $titre
  80.      *
  81.      * @return Annee
  82.      */
  83.     public function setTitre($titre)
  84.     {
  85.         $this->titre $titre;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get titre.
  90.      *
  91.      * @return string
  92.      */
  93.     public function getTitre()
  94.     {
  95.         return $this->titre;
  96.     }
  97.     /**
  98.      * Set description.
  99.      *
  100.      * @param string $description
  101.      *
  102.      * @return Annee
  103.      */
  104.     public function setDescription($description)
  105.     {
  106.         $this->description $description;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get description.
  111.      *
  112.      * @return string
  113.      */
  114.     public function getDescription()
  115.     {
  116.         return $this->description;
  117.     }
  118.     /**
  119.      * Set rang.
  120.      *
  121.      * @param int $rang
  122.      *
  123.      * @return Annee
  124.      */
  125.     public function setRang($rang)
  126.     {
  127.         $this->rang $rang;
  128.         return $this;
  129.     }
  130.     /**
  131.      * Get rang.
  132.      *
  133.      * @return int
  134.      */
  135.     public function getRang()
  136.     {
  137.         return $this->rang;
  138.     }
  139.     /**
  140.      * Add batimentAnneeExtension.
  141.      *
  142.      * @param \App\Entity\Batiment $batimentAnneeExtension
  143.      *
  144.      * @return Annee
  145.      */
  146.     public function addBatimentAnneeExtension(Batiment $batimentAnneeExtension)
  147.     {
  148.         $this->BatimentAnneeExtension[] = $batimentAnneeExtension;
  149.         return $this;
  150.     }
  151.     /**
  152.      * Remove batimentAnneeExtension.
  153.      *
  154.      * @param \App\Entity\Batiment $batimentAnneeExtension
  155.      */
  156.     public function removeBatimentAnneeExtension(Batiment $batimentAnneeExtension)
  157.     {
  158.         $this->BatimentAnneeExtension->removeElement($batimentAnneeExtension);
  159.     }
  160.     /**
  161.      * Get batimentAnneeExtension.
  162.      *
  163.      * @return \Doctrine\Common\Collections\Collection
  164.      */
  165.     public function getBatimentAnneeExtension()
  166.     {
  167.         return $this->BatimentAnneeExtension;
  168.     }
  169. }