src/Entity/Campagne.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5.  * Campagne.
  6.  */
  7. class Campagne
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $code;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $titre;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $description;
  25.     /**
  26.      * @var \DateTime
  27.      */
  28.     private $dateDemarrage;
  29.     /**
  30.      * @var \Doctrine\Common\Collections\Collection
  31.      */
  32.     private $ModificationEchantillonnage;
  33.     /**
  34.      * Constructor.
  35.      */
  36.     public function __construct()
  37.     {
  38.         $this->ModificationEchantillonnage = new \Doctrine\Common\Collections\ArrayCollection();
  39.         $this->Mesure = new ArrayCollection();
  40.     }
  41.     /**
  42.      * Get id.
  43.      *
  44.      * @return int
  45.      */
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * Set code.
  52.      *
  53.      * @param string $code
  54.      *
  55.      * @return Campagne
  56.      */
  57.     public function setCode($code)
  58.     {
  59.         $this->code $code;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get code.
  64.      *
  65.      * @return string
  66.      */
  67.     public function getCode()
  68.     {
  69.         return $this->code;
  70.     }
  71.     /**
  72.      * Set titre.
  73.      *
  74.      * @param string $titre
  75.      *
  76.      * @return Campagne
  77.      */
  78.     public function setTitre($titre)
  79.     {
  80.         $this->titre $titre;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get titre.
  85.      *
  86.      * @return string
  87.      */
  88.     public function getTitre()
  89.     {
  90.         return $this->titre;
  91.     }
  92.     /**
  93.      * Set description.
  94.      *
  95.      * @param string $description
  96.      *
  97.      * @return Campagne
  98.      */
  99.     public function setDescription($description)
  100.     {
  101.         $this->description $description;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get description.
  106.      *
  107.      * @return string
  108.      */
  109.     public function getDescription()
  110.     {
  111.         return $this->description;
  112.     }
  113.     /**
  114.      * Set dateDemarrage.
  115.      *
  116.      * @param \DateTime $dateDemarrage
  117.      *
  118.      * @return Campagne
  119.      */
  120.     public function setDateDemarrage($dateDemarrage)
  121.     {
  122.         $this->dateDemarrage $dateDemarrage;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get dateDemarrage.
  127.      *
  128.      * @return \DateTime
  129.      */
  130.     public function getDateDemarrage()
  131.     {
  132.         return $this->dateDemarrage;
  133.     }
  134.     /**
  135.      * Add modificationEchantillonnage.
  136.      *
  137.      * @param \App\Entity\ModificationEchantillonnage $modificationEchantillonnage
  138.      *
  139.      * @return Campagne
  140.      */
  141.     public function addModificationEchantillonnage(ModificationEchantillonnage $modificationEchantillonnage)
  142.     {
  143.         $this->ModificationEchantillonnage[] = $modificationEchantillonnage;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Remove modificationEchantillonnage.
  148.      *
  149.      * @param \App\Entity\ModificationEchantillonnage $modificationEchantillonnage
  150.      */
  151.     public function removeModificationEchantillonnage(ModificationEchantillonnage $modificationEchantillonnage)
  152.     {
  153.         $this->ModificationEchantillonnage->removeElement($modificationEchantillonnage);
  154.     }
  155.     /**
  156.      * Get modificationEchantillonnage.
  157.      *
  158.      * @return \Doctrine\Common\Collections\Collection
  159.      */
  160.     public function getModificationEchantillonnage()
  161.     {
  162.         return $this->ModificationEchantillonnage;
  163.     }
  164.     /**
  165.      * @var \Doctrine\Common\Collections\Collection
  166.      */
  167.     private $Mesure;
  168.     /**
  169.      * Add mesure.
  170.      *
  171.      * @param \App\Entity\Mesure $mesure
  172.      *
  173.      * @return Campagne
  174.      */
  175.     public function addMesure(Mesure $mesure)
  176.     {
  177.         $this->Mesure[] = $mesure;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Remove mesure.
  182.      *
  183.      * @param \App\Entity\Mesure $mesure
  184.      */
  185.     public function removeMesure(Mesure $mesure)
  186.     {
  187.         $this->Mesure->removeElement($mesure);
  188.     }
  189.     /**
  190.      * Get mesure.
  191.      *
  192.      * @return \Doctrine\Common\Collections\Collection
  193.      */
  194.     public function getMesure()
  195.     {
  196.         return $this->Mesure;
  197.     }
  198.     /**
  199.      * @var string
  200.      */
  201.     private $annee;
  202.     /**
  203.      * Set annee.
  204.      *
  205.      * @param string $annee
  206.      *
  207.      * @return Campagne
  208.      */
  209.     public function setAnnee($annee)
  210.     {
  211.         $this->annee $annee;
  212.         return $this;
  213.     }
  214.     /**
  215.      * Get annee.
  216.      *
  217.      * @return string
  218.      */
  219.     public function getAnnee()
  220.     {
  221.         return $this->annee;
  222.     }
  223.     /**
  224.      * @var string
  225.      */
  226.     private $sourceContenu;
  227.     /**
  228.      * Set sourceContenu.
  229.      *
  230.      * @param string $sourceContenu
  231.      *
  232.      * @return Campagne
  233.      */
  234.     public function setSourceContenu($sourceContenu)
  235.     {
  236.         $this->sourceContenu $sourceContenu;
  237.         return $this;
  238.     }
  239.     /**
  240.      * Get sourceContenu.
  241.      *
  242.      * @return string
  243.      */
  244.     public function getSourceContenu()
  245.     {
  246.         return $this->sourceContenu;
  247.     }
  248. }