src/Entity/TrancheAge.php line 8

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