<?php
namespace App\Application\Sonata\UserBundle\Entity;
use App\Entity\Batiment;
use App\Entity\Etablissement;
use App\Entity\FournisseurDonnees;
use App\Entity\Mesure;
use App\Entity\PieceMesure;
use App\Entity\ValeursMesures;
use App\Entity\ZoneHomogene;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Sonata\UserBundle\Entity\BaseUser as BaseUser;
/**
* This file has been generated by the SonataEasyExtendsBundle.
*
* @see https://sonata-project.org/easy-extends
*
* References:
* @see http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*/
class User extends BaseUser
{
/**
* @var int
*/
protected $id;
private $accesDonneesPersonnelles;
private $BatimentCreatedBy;
private $BatimentUpdatedBy;
private $ValeursMesuresCreatedBy;
private $ValeursMesuresUpdateBy;
private $MesureCreatedBy;
private $MesureUpdatedBy;
private $ZoneHomogeneCreatedBy;
private $ZoneHomogeneUpdateBy;
private $PieceMesureCreatedBy;
private $PieceMesureUpdateBy;
private $EtablissementCreatedBy;
private $EtablissementUpdatedBy;
private $FournisseurDonnees;
public function __construct()
{
$this->BatimentCreatedBy = new ArrayCollection();
$this->BatimentUpdatedBy = new ArrayCollection();
$this->ValeursMesuresCreatedBy = new ArrayCollection();
$this->ValeursMesuresUpdateBy = new ArrayCollection();
$this->MesureCreatedBy = new ArrayCollection();
$this->MesureUpdatedBy = new ArrayCollection();
$this->ZoneHomogeneCreatedBy = new ArrayCollection();
$this->ZoneHomogeneUpdateBy = new ArrayCollection();
$this->PieceMesureCreatedBy = new ArrayCollection();
$this->PieceMesureUpdateBy = new ArrayCollection();
$this->EtablissementCreatedBy = new ArrayCollection();
$this->EtablissementUpdatedBy = new ArrayCollection();
}
/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
public function getAccesDonneesPersonnelles(): ?bool
{
return $this->accesDonneesPersonnelles;
}
public function setAccesDonneesPersonnelles(?bool $accesDonneesPersonnelles): self
{
$this->accesDonneesPersonnelles = $accesDonneesPersonnelles;
return $this;
}
/**
* @return Collection<int, Batiment>
*/
public function getBatimentCreatedBy(): Collection
{
return $this->BatimentCreatedBy;
}
public function addBatimentCreatedBy(Batiment $batimentCreatedBy): self
{
if (!$this->BatimentCreatedBy->contains($batimentCreatedBy)) {
$this->BatimentCreatedBy[] = $batimentCreatedBy;
$batimentCreatedBy->setCreatedBy($this);
}
return $this;
}
public function removeBatimentCreatedBy(Batiment $batimentCreatedBy): self
{
if ($this->BatimentCreatedBy->removeElement($batimentCreatedBy)) {
// set the owning side to null (unless already changed)
if ($batimentCreatedBy->getCreatedBy() === $this) {
$batimentCreatedBy->setCreatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, Batiment>
*/
public function getBatimentUpdatedBy(): Collection
{
return $this->BatimentUpdatedBy;
}
public function addBatimentUpdatedBy(Batiment $batimentUpdatedBy): self
{
if (!$this->BatimentUpdatedBy->contains($batimentUpdatedBy)) {
$this->BatimentUpdatedBy[] = $batimentUpdatedBy;
$batimentUpdatedBy->setUpdatedBy($this);
}
return $this;
}
public function removeBatimentUpdatedBy(Batiment $batimentUpdatedBy): self
{
if ($this->BatimentUpdatedBy->removeElement($batimentUpdatedBy)) {
// set the owning side to null (unless already changed)
if ($batimentUpdatedBy->getUpdatedBy() === $this) {
$batimentUpdatedBy->setUpdatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, ValeursMesures>
*/
public function getValeursMesuresCreatedBy(): Collection
{
return $this->ValeursMesuresCreatedBy;
}
public function addValeursMesuresCreatedBy(ValeursMesures $valeursMesuresCreatedBy): self
{
if (!$this->ValeursMesuresCreatedBy->contains($valeursMesuresCreatedBy)) {
$this->ValeursMesuresCreatedBy[] = $valeursMesuresCreatedBy;
$valeursMesuresCreatedBy->setCreatedBy($this);
}
return $this;
}
public function removeValeursMesuresCreatedBy(ValeursMesures $valeursMesuresCreatedBy): self
{
if ($this->ValeursMesuresCreatedBy->removeElement($valeursMesuresCreatedBy)) {
// set the owning side to null (unless already changed)
if ($valeursMesuresCreatedBy->getCreatedBy() === $this) {
$valeursMesuresCreatedBy->setCreatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, ValeursMesures>
*/
public function getValeursMesuresUpdateBy(): Collection
{
return $this->ValeursMesuresUpdateBy;
}
public function addValeursMesuresUpdateBy(ValeursMesures $valeursMesuresUpdateBy): self
{
if (!$this->ValeursMesuresUpdateBy->contains($valeursMesuresUpdateBy)) {
$this->ValeursMesuresUpdateBy[] = $valeursMesuresUpdateBy;
$valeursMesuresUpdateBy->setUpdateBy($this);
}
return $this;
}
public function removeValeursMesuresUpdateBy(ValeursMesures $valeursMesuresUpdateBy): self
{
if ($this->ValeursMesuresUpdateBy->removeElement($valeursMesuresUpdateBy)) {
// set the owning side to null (unless already changed)
if ($valeursMesuresUpdateBy->getUpdateBy() === $this) {
$valeursMesuresUpdateBy->setUpdateBy(null);
}
}
return $this;
}
/**
* @return Collection<int, Mesure>
*/
public function getMesureCreatedBy(): Collection
{
return $this->MesureCreatedBy;
}
public function addMesureCreatedBy(Mesure $mesureCreatedBy): self
{
if (!$this->MesureCreatedBy->contains($mesureCreatedBy)) {
$this->MesureCreatedBy[] = $mesureCreatedBy;
$mesureCreatedBy->setCreatedBy($this);
}
return $this;
}
public function removeMesureCreatedBy(Mesure $mesureCreatedBy): self
{
if ($this->MesureCreatedBy->removeElement($mesureCreatedBy)) {
// set the owning side to null (unless already changed)
if ($mesureCreatedBy->getCreatedBy() === $this) {
$mesureCreatedBy->setCreatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, Mesure>
*/
public function getMesureUpdatedBy(): Collection
{
return $this->MesureUpdatedBy;
}
public function addMesureUpdatedBy(Mesure $mesureUpdatedBy): self
{
if (!$this->MesureUpdatedBy->contains($mesureUpdatedBy)) {
$this->MesureUpdatedBy[] = $mesureUpdatedBy;
$mesureUpdatedBy->setUpdatedBy($this);
}
return $this;
}
public function removeMesureUpdatedBy(Mesure $mesureUpdatedBy): self
{
if ($this->MesureUpdatedBy->removeElement($mesureUpdatedBy)) {
// set the owning side to null (unless already changed)
if ($mesureUpdatedBy->getUpdatedBy() === $this) {
$mesureUpdatedBy->setUpdatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, ZoneHomogene>
*/
public function getZoneHomogeneCreatedBy(): Collection
{
return $this->ZoneHomogeneCreatedBy;
}
public function addZoneHomogeneCreatedBy(ZoneHomogene $zoneHomogeneCreatedBy): self
{
if (!$this->ZoneHomogeneCreatedBy->contains($zoneHomogeneCreatedBy)) {
$this->ZoneHomogeneCreatedBy[] = $zoneHomogeneCreatedBy;
$zoneHomogeneCreatedBy->setCreatedBy($this);
}
return $this;
}
public function removeZoneHomogeneCreatedBy(ZoneHomogene $zoneHomogeneCreatedBy): self
{
if ($this->ZoneHomogeneCreatedBy->removeElement($zoneHomogeneCreatedBy)) {
// set the owning side to null (unless already changed)
if ($zoneHomogeneCreatedBy->getCreatedBy() === $this) {
$zoneHomogeneCreatedBy->setCreatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, ZoneHomogene>
*/
public function getZoneHomogeneUpdateBy(): Collection
{
return $this->ZoneHomogeneUpdateBy;
}
public function addZoneHomogeneUpdateBy(ZoneHomogene $zoneHomogeneUpdateBy): self
{
if (!$this->ZoneHomogeneUpdateBy->contains($zoneHomogeneUpdateBy)) {
$this->ZoneHomogeneUpdateBy[] = $zoneHomogeneUpdateBy;
$zoneHomogeneUpdateBy->setUpdateBy($this);
}
return $this;
}
public function removeZoneHomogeneUpdateBy(ZoneHomogene $zoneHomogeneUpdateBy): self
{
if ($this->ZoneHomogeneUpdateBy->removeElement($zoneHomogeneUpdateBy)) {
// set the owning side to null (unless already changed)
if ($zoneHomogeneUpdateBy->getUpdateBy() === $this) {
$zoneHomogeneUpdateBy->setUpdateBy(null);
}
}
return $this;
}
/**
* @return Collection<int, PieceMesure>
*/
public function getPieceMesureCreatedBy(): Collection
{
return $this->PieceMesureCreatedBy;
}
public function addPieceMesureCreatedBy(PieceMesure $pieceMesureCreatedBy): self
{
if (!$this->PieceMesureCreatedBy->contains($pieceMesureCreatedBy)) {
$this->PieceMesureCreatedBy[] = $pieceMesureCreatedBy;
$pieceMesureCreatedBy->setCreatedBy($this);
}
return $this;
}
public function removePieceMesureCreatedBy(PieceMesure $pieceMesureCreatedBy): self
{
if ($this->PieceMesureCreatedBy->removeElement($pieceMesureCreatedBy)) {
// set the owning side to null (unless already changed)
if ($pieceMesureCreatedBy->getCreatedBy() === $this) {
$pieceMesureCreatedBy->setCreatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, PieceMesure>
*/
public function getPieceMesureUpdateBy(): Collection
{
return $this->PieceMesureUpdateBy;
}
public function addPieceMesureUpdateBy(PieceMesure $pieceMesureUpdateBy): self
{
if (!$this->PieceMesureUpdateBy->contains($pieceMesureUpdateBy)) {
$this->PieceMesureUpdateBy[] = $pieceMesureUpdateBy;
$pieceMesureUpdateBy->setUpdateBy($this);
}
return $this;
}
public function removePieceMesureUpdateBy(PieceMesure $pieceMesureUpdateBy): self
{
if ($this->PieceMesureUpdateBy->removeElement($pieceMesureUpdateBy)) {
// set the owning side to null (unless already changed)
if ($pieceMesureUpdateBy->getUpdateBy() === $this) {
$pieceMesureUpdateBy->setUpdateBy(null);
}
}
return $this;
}
/**
* @return Collection<int, Etablissement>
*/
public function getEtablissementCreatedBy(): Collection
{
return $this->EtablissementCreatedBy;
}
public function addEtablissementCreatedBy(Etablissement $etablissementCreatedBy): self
{
if (!$this->EtablissementCreatedBy->contains($etablissementCreatedBy)) {
$this->EtablissementCreatedBy[] = $etablissementCreatedBy;
$etablissementCreatedBy->setCreatedBy($this);
}
return $this;
}
public function removeEtablissementCreatedBy(Etablissement $etablissementCreatedBy): self
{
if ($this->EtablissementCreatedBy->removeElement($etablissementCreatedBy)) {
// set the owning side to null (unless already changed)
if ($etablissementCreatedBy->getCreatedBy() === $this) {
$etablissementCreatedBy->setCreatedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, Etablissement>
*/
public function getEtablissementUpdatedBy(): Collection
{
return $this->EtablissementUpdatedBy;
}
public function addEtablissementUpdatedBy(Etablissement $etablissementUpdatedBy): self
{
if (!$this->EtablissementUpdatedBy->contains($etablissementUpdatedBy)) {
$this->EtablissementUpdatedBy[] = $etablissementUpdatedBy;
$etablissementUpdatedBy->setUpdatedBy($this);
}
return $this;
}
public function removeEtablissementUpdatedBy(Etablissement $etablissementUpdatedBy): self
{
if ($this->EtablissementUpdatedBy->removeElement($etablissementUpdatedBy)) {
// set the owning side to null (unless already changed)
if ($etablissementUpdatedBy->getUpdatedBy() === $this) {
$etablissementUpdatedBy->setUpdatedBy(null);
}
}
return $this;
}
public function getFournisseurDonnees(): ?FournisseurDonnees
{
return $this->FournisseurDonnees;
}
public function setFournisseurDonnees(?FournisseurDonnees $FournisseurDonnees): self
{
$this->FournisseurDonnees = $FournisseurDonnees;
return $this;
}
public function isAccesDonneesPersonnelles(): ?bool
{
return $this->accesDonneesPersonnelles;
}
}