<?php
namespace App\Entity;
use App\Application\Sonata\UserBundle\Entity\User;
use Doctrine\Common\Collections\ArrayCollection;
/**
* FournisseurDonnees.
*/
class FournisseurDonnees
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $adresse;
/**
* @var string
*/
private $adresseEmail;
/**
* @var string
*/
private $telephone;
/**
* @var string
*/
private $code;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var string
*/
private $numCommuneInsee;
/**
* Constructor.
*/
public function __construct()
{
$this->Batiment = new ArrayCollection();
$this->Mesure = new ArrayCollection();
$this->Import = new ArrayCollection();
$this->Etablissement = new ArrayCollection();
$this->User = new ArrayCollection();
$this->BatimentAcces = new ArrayCollection();
}
/**
* toString.
*
* @return string
*/
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set titre.
*
* @param string $titre
*
* @return FournisseurDonnees
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set adresse.
*
* @param string $adresse
*
* @return FournisseurDonnees
*/
public function setAdresse($adresse)
{
$this->adresse = $adresse;
return $this;
}
/**
* Get adresse.
*
* @return string
*/
public function getAdresse()
{
return $this->adresse;
}
/**
* Set adresseEmail.
*
* @param string $adresseEmail
*
* @return FournisseurDonnees
*/
public function setAdresseEmail($adresseEmail)
{
$this->adresseEmail = $adresseEmail;
return $this;
}
/**
* Get adresseEmail.
*
* @return string
*/
public function getAdresseEmail()
{
return $this->adresseEmail;
}
/**
* Set telephone.
*
* @param string $telephone
*
* @return FournisseurDonnees
*/
public function setTelephone($telephone)
{
$this->telephone = $telephone;
return $this;
}
/**
* Get telephone.
*
* @return string
*/
public function getTelephone()
{
return $this->telephone;
}
/**
* Set code.
*
* @param string $code
*
* @return FournisseurDonnees
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return FournisseurDonnees
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Set numCommuneInsee.
*
* @param string $numCommuneInsee
*
* @return FournisseurDonnees
*/
public function setNumCommuneInsee($numCommuneInsee)
{
$this->numCommuneInsee = $numCommuneInsee;
return $this;
}
/**
* Get numCommuneInsee.
*
* @return string
*/
public function getNumCommuneInsee()
{
return $this->numCommuneInsee;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Batiment;
/**
* Add batiment.
*
* @param \App\Entity\Batiment $batiment
*
* @return FournisseurDonnees
*/
public function addBatiment(Batiment $batiment)
{
$this->Batiment[] = $batiment;
return $this;
}
/**
* Remove batiment.
*
* @param \App\Entity\Batiment $batiment
*/
public function removeBatiment(Batiment $batiment)
{
$this->Batiment->removeElement($batiment);
}
/**
* Get batiment.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatiment()
{
return $this->Batiment;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Mesure;
/**
* Add mesure.
*
* @param \App\Entity\Mesure $mesure
*
* @return FournisseurDonnees
*/
public function addMesure(Mesure $mesure)
{
$this->Mesure[] = $mesure;
return $this;
}
/**
* Remove mesure.
*
* @param \App\Entity\Mesure $mesure
*/
public function removeMesure(Mesure $mesure)
{
$this->Mesure->removeElement($mesure);
}
/**
* Get mesure.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMesure()
{
return $this->Mesure;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $User;
/**
* Add user.
*
* @return FournisseurDonnees
*/
public function addUser(User $user)
{
$this->User[] = $user;
return $this;
}
/**
* Remove user.
*/
public function removeUser(User $user)
{
$this->User->removeElement($user);
}
/**
* Get user.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getUser()
{
return $this->User;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $BatimentAcces;
/**
* Add batimentAcce.
*
* @param \App\Entity\Batiment $batimentAcce
*
* @return FournisseurDonnees
*/
public function addBatimentAcce(Batiment $batimentAcce)
{
$this->BatimentAcces[] = $batimentAcce;
return $this;
}
/**
* Remove batimentAcce.
*
* @param \App\Entity\Batiment $batimentAcce
*/
public function removeBatimentAcce(Batiment $batimentAcce)
{
$this->BatimentAcces->removeElement($batimentAcce);
}
/**
* Get batimentAcces.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatimentAcces()
{
return $this->BatimentAcces;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Import;
/**
* Add import.
*
* @param \App\Entity\Import $import
*
* @return FournisseurDonnees
*/
public function addImport(Import $import)
{
$this->Import[] = $import;
return $this;
}
/**
* Remove import.
*
* @param \App\Entity\Import $import
*/
public function removeImport(Import $import)
{
$this->Import->removeElement($import);
}
/**
* Get import.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getImport()
{
return $this->Import;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Etablissement;
/**
* Add etablissement.
*
* @param \App\Entity\Etablissement $etablissement
*
* @return FournisseurDonnees
*/
public function addEtablissement(Etablissement $etablissement)
{
$this->Etablissement[] = $etablissement;
return $this;
}
/**
* Remove etablissement.
*
* @param \App\Entity\Etablissement $etablissement
*/
public function removeEtablissement(Etablissement $etablissement)
{
$this->Etablissement->removeElement($etablissement);
}
/**
* Get etablissement.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getEtablissement()
{
return $this->Etablissement;
}
}