<?php
namespace App\Entity;
use App\Application\Sonata\UserBundle\Entity\User;
/**
* Etablissement.
*/
class Etablissement
{
/**
* @var int
*/
private $id;
/**
* @var crypt
*/
private $code;
/**
* @var crypt
*/
private $nom;
/**
* @var float
*/
private $surface;
/**
* @var int
*/
private $nombreBatiments;
/**
* @var int
*/
private $nombreOccupants;
/**
* @var crypt
*/
private $typeEtablissementAutre;
/**
* @var crypt
*/
private $coordonneeX;
/**
* @var crypt
*/
private $coordonneeY;
/**
* @var string
*/
private $sourceContenu;
/**
* @var \DateTime
*/
private $createdAt;
/**
* @var \DateTime
*/
private $updatedAt;
/**
* @var string
*/
private $codeOrigineSource;
/**
* @var crypt
*/
private $typeEtablissementSource;
/**
* @var string
*/
private $origineContenu;
/**
* @var crypt
*/
private $codeUnique;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Batiment;
/**
* @var \App\Entity\TypeEtablissement
*/
private $TypeEtablissement;
/**
* @var \App\Application\Sonata\UserBundle\Entity\User
*/
private $CreatedBy;
/**
* @var \App\Application\Sonata\UserBundle\Entity\User
*/
private $UpdatedBy;
/**
* @var \App\Entity\NombreBatiments
*/
private $NombreDeBatiments;
/**
* @var \App\Entity\FournisseurDonnees
*/
private $FournisseurDonnees;
/**
* Constructor.
*/
public function __construct()
{
$this->Batiment = new \Doctrine\Common\Collections\ArrayCollection();
}
public function __toString()
{
return $this->nom;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param crypt $code
*
* @return Etablissement
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code.
*
* @return crypt
*/
public function getCode()
{
return $this->code;
}
/**
* Set nom.
*
* @param crypt $nom
*
* @return Etablissement
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get nom.
*
* @return crypt
*/
public function getNom()
{
return $this->nom;
}
/**
* Set surface.
*
* @param float $surface
*
* @return Etablissement
*/
public function setSurface($surface)
{
$this->surface = $surface;
return $this;
}
/**
* Get surface.
*
* @return float
*/
public function getSurface()
{
return $this->surface;
}
/**
* Set nombreBatiments.
*
* @param int $nombreBatiments
*
* @return Etablissement
*/
public function setNombreBatiments($nombreBatiments)
{
$this->nombreBatiments = $nombreBatiments;
return $this;
}
/**
* Get nombreBatiments.
*
* @return int
*/
public function getNombreBatiments()
{
return $this->nombreBatiments;
}
/**
* Set nombreOccupants.
*
* @param int $nombreOccupants
*
* @return Etablissement
*/
public function setNombreOccupants($nombreOccupants)
{
$this->nombreOccupants = $nombreOccupants;
return $this;
}
/**
* Get nombreOccupants.
*
* @return int
*/
public function getNombreOccupants()
{
return $this->nombreOccupants;
}
/**
* Set typeEtablissementAutre.
*
* @param crypt $typeEtablissementAutre
*
* @return Etablissement
*/
public function setTypeEtablissementAutre($typeEtablissementAutre)
{
$this->typeEtablissementAutre = $typeEtablissementAutre;
return $this;
}
/**
* Get typeEtablissementAutre.
*
* @return crypt
*/
public function getTypeEtablissementAutre()
{
return $this->typeEtablissementAutre;
}
/**
* Set coordonneeX.
*
* @param crypt $coordonneeX
*
* @return Etablissement
*/
public function setCoordonneeX($coordonneeX)
{
$this->coordonneeX = $coordonneeX;
return $this;
}
/**
* Get coordonneeX.
*
* @return crypt
*/
public function getCoordonneeX()
{
return $this->coordonneeX;
}
/**
* Set coordonneeY.
*
* @param crypt $coordonneeY
*
* @return Etablissement
*/
public function setCoordonneeY($coordonneeY)
{
$this->coordonneeY = $coordonneeY;
return $this;
}
/**
* Get coordonneeY.
*
* @return crypt
*/
public function getCoordonneeY()
{
return $this->coordonneeY;
}
/**
* Set sourceContenu.
*
* @param string $sourceContenu
*
* @return Etablissement
*/
public function setSourceContenu($sourceContenu)
{
$this->sourceContenu = $sourceContenu;
return $this;
}
/**
* Get sourceContenu.
*
* @return string
*/
public function getSourceContenu()
{
return $this->sourceContenu;
}
/**
* Set createdAt.
*
* @param \DateTime $createdAt
*
* @return Etablissement
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt.
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt.
*
* @param \DateTime $updatedAt
*
* @return Etablissement
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt.
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set codeOrigineSource.
*
* @param string $codeOrigineSource
*
* @return Etablissement
*/
public function setCodeOrigineSource($codeOrigineSource)
{
$this->codeOrigineSource = $codeOrigineSource;
return $this;
}
/**
* Get codeOrigineSource.
*
* @return string
*/
public function getCodeOrigineSource()
{
return $this->codeOrigineSource;
}
/**
* Set typeEtablissementSource.
*
* @param crypt $typeEtablissementSource
*
* @return Etablissement
*/
public function setTypeEtablissementSource($typeEtablissementSource)
{
$this->typeEtablissementSource = $typeEtablissementSource;
return $this;
}
/**
* Get typeEtablissementSource.
*
* @return crypt
*/
public function getTypeEtablissementSource()
{
return $this->typeEtablissementSource;
}
/**
* Set origineContenu.
*
* @param string $origineContenu
*
* @return Etablissement
*/
public function setOrigineContenu($origineContenu)
{
$this->origineContenu = $origineContenu;
return $this;
}
/**
* Get origineContenu.
*
* @return string
*/
public function getOrigineContenu()
{
return $this->origineContenu;
}
/**
* Set codeUnique.
*
* @param crypt $codeUnique
*
* @return Etablissement
*/
public function setCodeUnique($codeUnique)
{
$this->codeUnique = $codeUnique;
return $this;
}
/**
* Get codeUnique.
*
* @return crypt
*/
public function getCodeUnique()
{
return $this->codeUnique;
}
/**
* Add batiment.
*
* @param \App\Entity\Batiment $batiment
*
* @return Etablissement
*/
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;
}
/**
* Set typeEtablissement.
*
* @param \App\Entity\TypeEtablissement $typeEtablissement
*
* @return Etablissement
*/
public function setTypeEtablissement(TypeEtablissement $typeEtablissement = null)
{
$this->TypeEtablissement = $typeEtablissement;
return $this;
}
/**
* Get typeEtablissement.
*
* @return \App\Entity\TypeEtablissement
*/
public function getTypeEtablissement()
{
return $this->TypeEtablissement;
}
/**
* Set createdBy.
*
* @param \App\Application\Sonata\UserBundle\Entity\User $createdBy
*
* @return Etablissement
*/
public function setCreatedBy(User $createdBy = null)
{
$this->CreatedBy = $createdBy;
return $this;
}
/**
* Get createdBy.
*
* @return \App\Application\Sonata\UserBundle\Entity\User
*/
public function getCreatedBy()
{
return $this->CreatedBy;
}
/**
* Set updatedBy.
*
* @param \App\Application\Sonata\UserBundle\Entity\User $updatedBy
*
* @return Etablissement
*/
public function setUpdatedBy(User $updatedBy = null)
{
$this->UpdatedBy = $updatedBy;
return $this;
}
/**
* Get updatedBy.
*
* @return \App\Application\Sonata\UserBundle\Entity\User
*/
public function getUpdatedBy()
{
return $this->UpdatedBy;
}
/**
* Set nombreDeBatiments.
*
* @param \App\Entity\NombreBatiments $nombreDeBatiments
*
* @return Etablissement
*/
public function setNombreDeBatiments(NombreBatiments $nombreDeBatiments = null)
{
$this->NombreDeBatiments = $nombreDeBatiments;
return $this;
}
/**
* Get nombreDeBatiments.
*
* @return \App\Entity\NombreBatiments
*/
public function getNombreDeBatiments()
{
return $this->NombreDeBatiments;
}
/**
* Set fournisseurDonnees.
*
* @param \App\Entity\FournisseurDonnees $fournisseurDonnees
*
* @return Etablissement
*/
public function setFournisseurDonnees(FournisseurDonnees $fournisseurDonnees = null)
{
$this->FournisseurDonnees = $fournisseurDonnees;
return $this;
}
/**
* Get fournisseurDonnees.
*
* @return \App\Entity\FournisseurDonnees
*/
public function getFournisseurDonnees()
{
return $this->FournisseurDonnees;
}
}