src/Entity/Participant.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5.  * Participant.
  6.  */
  7. class Participant
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $nom;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $prenom;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $email;
  25.     /**
  26.      * @var string
  27.      */
  28.     private $telephoneFixe;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $telephonePortable;
  33.     /**
  34.      * @var \Doctrine\Common\Collections\Collection
  35.      */
  36.     private $Batiment;
  37.     /**
  38.      * Constructor.
  39.      */
  40.     public function __construct()
  41.     {
  42.         $this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
  43.         $this->Mesure = new ArrayCollection();
  44.     }
  45.     public function __toString()
  46.     {
  47.         return $this->nom.' '.$this->prenom;
  48.     }
  49.     /**
  50.      * Get id.
  51.      *
  52.      * @return int
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * Set nom.
  60.      *
  61.      * @param string $nom
  62.      *
  63.      * @return Participant
  64.      */
  65.     public function setNom($nom)
  66.     {
  67.         $this->nom $nom;
  68.         return $this;
  69.     }
  70.     /**
  71.      * Get nom.
  72.      *
  73.      * @return string
  74.      */
  75.     public function getNom()
  76.     {
  77.         return $this->nom;
  78.     }
  79.     /**
  80.      * Set prenom.
  81.      *
  82.      * @param string $prenom
  83.      *
  84.      * @return Participant
  85.      */
  86.     public function setPrenom($prenom)
  87.     {
  88.         $this->prenom $prenom;
  89.         return $this;
  90.     }
  91.     /**
  92.      * Get prenom.
  93.      *
  94.      * @return string
  95.      */
  96.     public function getPrenom()
  97.     {
  98.         return $this->prenom;
  99.     }
  100.     /**
  101.      * Set email.
  102.      *
  103.      * @param string $email
  104.      *
  105.      * @return Participant
  106.      */
  107.     public function setEmail($email)
  108.     {
  109.         $this->email $email;
  110.         return $this;
  111.     }
  112.     /**
  113.      * Get email.
  114.      *
  115.      * @return string
  116.      */
  117.     public function getEmail()
  118.     {
  119.         return $this->email;
  120.     }
  121.     /**
  122.      * Set telephoneFixe.
  123.      *
  124.      * @param string $telephoneFixe
  125.      *
  126.      * @return Participant
  127.      */
  128.     public function setTelephoneFixe($telephoneFixe)
  129.     {
  130.         $this->telephoneFixe $telephoneFixe;
  131.         return $this;
  132.     }
  133.     /**
  134.      * Get telephoneFixe.
  135.      *
  136.      * @return string
  137.      */
  138.     public function getTelephoneFixe()
  139.     {
  140.         return $this->telephoneFixe;
  141.     }
  142.     /**
  143.      * Set telephonePortable.
  144.      *
  145.      * @param string $telephonePortable
  146.      *
  147.      * @return Participant
  148.      */
  149.     public function setTelephonePortable($telephonePortable)
  150.     {
  151.         $this->telephonePortable $telephonePortable;
  152.         return $this;
  153.     }
  154.     /**
  155.      * Get telephonePortable.
  156.      *
  157.      * @return string
  158.      */
  159.     public function getTelephonePortable()
  160.     {
  161.         return $this->telephonePortable;
  162.     }
  163.     /**
  164.      * Add batiment.
  165.      *
  166.      * @param \App\Entity\Batiment $batiment
  167.      *
  168.      * @return Participant
  169.      */
  170.     public function addBatiment(Batiment $batiment)
  171.     {
  172.         $this->Batiment[] = $batiment;
  173.         return $this;
  174.     }
  175.     /**
  176.      * Remove batiment.
  177.      *
  178.      * @param \App\Entity\Batiment $batiment
  179.      */
  180.     public function removeBatiment(Batiment $batiment)
  181.     {
  182.         $this->Batiment->removeElement($batiment);
  183.     }
  184.     /**
  185.      * Get batiment.
  186.      *
  187.      * @return \Doctrine\Common\Collections\Collection
  188.      */
  189.     public function getBatiment()
  190.     {
  191.         return $this->Batiment;
  192.     }
  193.     /**
  194.      * @var \Doctrine\Common\Collections\Collection
  195.      */
  196.     private $Mesure;
  197.     /**
  198.      * Add mesure.
  199.      *
  200.      * @param \App\Entity\Mesure $mesure
  201.      *
  202.      * @return Participant
  203.      */
  204.     public function addMesure(Mesure $mesure)
  205.     {
  206.         $this->Mesure[] = $mesure;
  207.         return $this;
  208.     }
  209.     /**
  210.      * Remove mesure.
  211.      *
  212.      * @param \App\Entity\Mesure $mesure
  213.      */
  214.     public function removeMesure(Mesure $mesure)
  215.     {
  216.         $this->Mesure->removeElement($mesure);
  217.     }
  218.     /**
  219.      * Get mesure.
  220.      *
  221.      * @return \Doctrine\Common\Collections\Collection
  222.      */
  223.     public function getMesure()
  224.     {
  225.         return $this->Mesure;
  226.     }
  227.     /**
  228.      * @var string
  229.      */
  230.     private $sourceContenu;
  231.     /**
  232.      * Set sourceContenu.
  233.      *
  234.      * @param string $sourceContenu
  235.      *
  236.      * @return Participant
  237.      */
  238.     public function setSourceContenu($sourceContenu)
  239.     {
  240.         $this->sourceContenu $sourceContenu;
  241.         return $this;
  242.     }
  243.     /**
  244.      * Get sourceContenu.
  245.      *
  246.      * @return string
  247.      */
  248.     public function getSourceContenu()
  249.     {
  250.         return $this->sourceContenu;
  251.     }
  252.     /**
  253.      * @var string
  254.      */
  255.     private $adresseNumeroRue;
  256.     /**
  257.      * @var \App\Entity\Commune
  258.      */
  259.     private $Commune;
  260.     /**
  261.      * Set adresseNumeroRue.
  262.      *
  263.      * @param string $adresseNumeroRue
  264.      *
  265.      * @return Participant
  266.      */
  267.     public function setAdresseNumeroRue($adresseNumeroRue)
  268.     {
  269.         $this->adresseNumeroRue $adresseNumeroRue;
  270.         return $this;
  271.     }
  272.     /**
  273.      * Get adresseNumeroRue.
  274.      *
  275.      * @return string
  276.      */
  277.     public function getAdresseNumeroRue()
  278.     {
  279.         return $this->adresseNumeroRue;
  280.     }
  281.     /**
  282.      * Set commune.
  283.      *
  284.      * @param \App\Entity\Commune $commune
  285.      *
  286.      * @return Participant
  287.      */
  288.     public function setCommune(Commune $commune null)
  289.     {
  290.         $this->Commune $commune;
  291.         return $this;
  292.     }
  293.     /**
  294.      * Get commune.
  295.      *
  296.      * @return \App\Entity\Commune
  297.      */
  298.     public function getCommune()
  299.     {
  300.         return $this->Commune;
  301.     }
  302. }