src/Entity/FournisseurDonnees.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Application\Sonata\UserBundle\Entity\User;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6.  * FournisseurDonnees.
  7.  */
  8. class FournisseurDonnees
  9. {
  10.     /**
  11.      * @var int
  12.      */
  13.     private $id;
  14.     /**
  15.      * @var string
  16.      */
  17.     private $titre;
  18.     /**
  19.      * @var string
  20.      */
  21.     private $adresse;
  22.     /**
  23.      * @var string
  24.      */
  25.     private $adresseEmail;
  26.     /**
  27.      * @var string
  28.      */
  29.     private $telephone;
  30.     /**
  31.      * @var string
  32.      */
  33.     private $code;
  34.     /**
  35.      * @var int
  36.      */
  37.     private $idBdOrigine;
  38.     /**
  39.      * @var string
  40.      */
  41.     private $numCommuneInsee;
  42.     /**
  43.      * Constructor.
  44.      */
  45.     public function __construct()
  46.     {
  47.         $this->Batiment = new ArrayCollection();
  48.         $this->Mesure = new ArrayCollection();
  49.         $this->Import = new ArrayCollection();
  50.         $this->Etablissement = new ArrayCollection();
  51.         $this->User = new ArrayCollection();
  52.         $this->BatimentAcces = new ArrayCollection();
  53.     }
  54.     /**
  55.      * toString.
  56.      *
  57.      * @return string
  58.      */
  59.     public function __toString()
  60.     {
  61.         return $this->titre;
  62.     }
  63.     /**
  64.      * Get id.
  65.      *
  66.      * @return int
  67.      */
  68.     public function getId()
  69.     {
  70.         return $this->id;
  71.     }
  72.     /**
  73.      * Set titre.
  74.      *
  75.      * @param string $titre
  76.      *
  77.      * @return FournisseurDonnees
  78.      */
  79.     public function setTitre($titre)
  80.     {
  81.         $this->titre $titre;
  82.         return $this;
  83.     }
  84.     /**
  85.      * Get titre.
  86.      *
  87.      * @return string
  88.      */
  89.     public function getTitre()
  90.     {
  91.         return $this->titre;
  92.     }
  93.     /**
  94.      * Set adresse.
  95.      *
  96.      * @param string $adresse
  97.      *
  98.      * @return FournisseurDonnees
  99.      */
  100.     public function setAdresse($adresse)
  101.     {
  102.         $this->adresse $adresse;
  103.         return $this;
  104.     }
  105.     /**
  106.      * Get adresse.
  107.      *
  108.      * @return string
  109.      */
  110.     public function getAdresse()
  111.     {
  112.         return $this->adresse;
  113.     }
  114.     /**
  115.      * Set adresseEmail.
  116.      *
  117.      * @param string $adresseEmail
  118.      *
  119.      * @return FournisseurDonnees
  120.      */
  121.     public function setAdresseEmail($adresseEmail)
  122.     {
  123.         $this->adresseEmail $adresseEmail;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get adresseEmail.
  128.      *
  129.      * @return string
  130.      */
  131.     public function getAdresseEmail()
  132.     {
  133.         return $this->adresseEmail;
  134.     }
  135.     /**
  136.      * Set telephone.
  137.      *
  138.      * @param string $telephone
  139.      *
  140.      * @return FournisseurDonnees
  141.      */
  142.     public function setTelephone($telephone)
  143.     {
  144.         $this->telephone $telephone;
  145.         return $this;
  146.     }
  147.     /**
  148.      * Get telephone.
  149.      *
  150.      * @return string
  151.      */
  152.     public function getTelephone()
  153.     {
  154.         return $this->telephone;
  155.     }
  156.     /**
  157.      * Set code.
  158.      *
  159.      * @param string $code
  160.      *
  161.      * @return FournisseurDonnees
  162.      */
  163.     public function setCode($code)
  164.     {
  165.         $this->code $code;
  166.         return $this;
  167.     }
  168.     /**
  169.      * Get code.
  170.      *
  171.      * @return string
  172.      */
  173.     public function getCode()
  174.     {
  175.         return $this->code;
  176.     }
  177.     /**
  178.      * Set idBdOrigine.
  179.      *
  180.      * @param int $idBdOrigine
  181.      *
  182.      * @return FournisseurDonnees
  183.      */
  184.     public function setIdBdOrigine($idBdOrigine)
  185.     {
  186.         $this->idBdOrigine $idBdOrigine;
  187.         return $this;
  188.     }
  189.     /**
  190.      * Get idBdOrigine.
  191.      *
  192.      * @return int
  193.      */
  194.     public function getIdBdOrigine()
  195.     {
  196.         return $this->idBdOrigine;
  197.     }
  198.     /**
  199.      * Set numCommuneInsee.
  200.      *
  201.      * @param string $numCommuneInsee
  202.      *
  203.      * @return FournisseurDonnees
  204.      */
  205.     public function setNumCommuneInsee($numCommuneInsee)
  206.     {
  207.         $this->numCommuneInsee $numCommuneInsee;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get numCommuneInsee.
  212.      *
  213.      * @return string
  214.      */
  215.     public function getNumCommuneInsee()
  216.     {
  217.         return $this->numCommuneInsee;
  218.     }
  219.     /**
  220.      * @var \Doctrine\Common\Collections\Collection
  221.      */
  222.     private $Batiment;
  223.     /**
  224.      * Add batiment.
  225.      *
  226.      * @param \App\Entity\Batiment $batiment
  227.      *
  228.      * @return FournisseurDonnees
  229.      */
  230.     public function addBatiment(Batiment $batiment)
  231.     {
  232.         $this->Batiment[] = $batiment;
  233.         return $this;
  234.     }
  235.     /**
  236.      * Remove batiment.
  237.      *
  238.      * @param \App\Entity\Batiment $batiment
  239.      */
  240.     public function removeBatiment(Batiment $batiment)
  241.     {
  242.         $this->Batiment->removeElement($batiment);
  243.     }
  244.     /**
  245.      * Get batiment.
  246.      *
  247.      * @return \Doctrine\Common\Collections\Collection
  248.      */
  249.     public function getBatiment()
  250.     {
  251.         return $this->Batiment;
  252.     }
  253.     /**
  254.      * @var \Doctrine\Common\Collections\Collection
  255.      */
  256.     private $Mesure;
  257.     /**
  258.      * Add mesure.
  259.      *
  260.      * @param \App\Entity\Mesure $mesure
  261.      *
  262.      * @return FournisseurDonnees
  263.      */
  264.     public function addMesure(Mesure $mesure)
  265.     {
  266.         $this->Mesure[] = $mesure;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Remove mesure.
  271.      *
  272.      * @param \App\Entity\Mesure $mesure
  273.      */
  274.     public function removeMesure(Mesure $mesure)
  275.     {
  276.         $this->Mesure->removeElement($mesure);
  277.     }
  278.     /**
  279.      * Get mesure.
  280.      *
  281.      * @return \Doctrine\Common\Collections\Collection
  282.      */
  283.     public function getMesure()
  284.     {
  285.         return $this->Mesure;
  286.     }
  287.     /**
  288.      * @var \Doctrine\Common\Collections\Collection
  289.      */
  290.     private $User;
  291.     /**
  292.      * Add user.
  293.      *
  294.      * @return FournisseurDonnees
  295.      */
  296.     public function addUser(User $user)
  297.     {
  298.         $this->User[] = $user;
  299.         return $this;
  300.     }
  301.     /**
  302.      * Remove user.
  303.      */
  304.     public function removeUser(User $user)
  305.     {
  306.         $this->User->removeElement($user);
  307.     }
  308.     /**
  309.      * Get user.
  310.      *
  311.      * @return \Doctrine\Common\Collections\Collection
  312.      */
  313.     public function getUser()
  314.     {
  315.         return $this->User;
  316.     }
  317.     /**
  318.      * @var \Doctrine\Common\Collections\Collection
  319.      */
  320.     private $BatimentAcces;
  321.     /**
  322.      * Add batimentAcce.
  323.      *
  324.      * @param \App\Entity\Batiment $batimentAcce
  325.      *
  326.      * @return FournisseurDonnees
  327.      */
  328.     public function addBatimentAcce(Batiment $batimentAcce)
  329.     {
  330.         $this->BatimentAcces[] = $batimentAcce;
  331.         return $this;
  332.     }
  333.     /**
  334.      * Remove batimentAcce.
  335.      *
  336.      * @param \App\Entity\Batiment $batimentAcce
  337.      */
  338.     public function removeBatimentAcce(Batiment $batimentAcce)
  339.     {
  340.         $this->BatimentAcces->removeElement($batimentAcce);
  341.     }
  342.     /**
  343.      * Get batimentAcces.
  344.      *
  345.      * @return \Doctrine\Common\Collections\Collection
  346.      */
  347.     public function getBatimentAcces()
  348.     {
  349.         return $this->BatimentAcces;
  350.     }
  351.     /**
  352.      * @var \Doctrine\Common\Collections\Collection
  353.      */
  354.     private $Import;
  355.     /**
  356.      * Add import.
  357.      *
  358.      * @param \App\Entity\Import $import
  359.      *
  360.      * @return FournisseurDonnees
  361.      */
  362.     public function addImport(Import $import)
  363.     {
  364.         $this->Import[] = $import;
  365.         return $this;
  366.     }
  367.     /**
  368.      * Remove import.
  369.      *
  370.      * @param \App\Entity\Import $import
  371.      */
  372.     public function removeImport(Import $import)
  373.     {
  374.         $this->Import->removeElement($import);
  375.     }
  376.     /**
  377.      * Get import.
  378.      *
  379.      * @return \Doctrine\Common\Collections\Collection
  380.      */
  381.     public function getImport()
  382.     {
  383.         return $this->Import;
  384.     }
  385.     /**
  386.      * @var \Doctrine\Common\Collections\Collection
  387.      */
  388.     private $Etablissement;
  389.     /**
  390.      * Add etablissement.
  391.      *
  392.      * @param \App\Entity\Etablissement $etablissement
  393.      *
  394.      * @return FournisseurDonnees
  395.      */
  396.     public function addEtablissement(Etablissement $etablissement)
  397.     {
  398.         $this->Etablissement[] = $etablissement;
  399.         return $this;
  400.     }
  401.     /**
  402.      * Remove etablissement.
  403.      *
  404.      * @param \App\Entity\Etablissement $etablissement
  405.      */
  406.     public function removeEtablissement(Etablissement $etablissement)
  407.     {
  408.         $this->Etablissement->removeElement($etablissement);
  409.     }
  410.     /**
  411.      * Get etablissement.
  412.      *
  413.      * @return \Doctrine\Common\Collections\Collection
  414.      */
  415.     public function getEtablissement()
  416.     {
  417.         return $this->Etablissement;
  418.     }
  419. }