src/Application/Sonata/UserBundle/Entity/User.php line 24

Open in your IDE?
  1. <?php
  2. namespace App\Application\Sonata\UserBundle\Entity;
  3. use App\Entity\Batiment;
  4. use App\Entity\Etablissement;
  5. use App\Entity\FournisseurDonnees;
  6. use App\Entity\Mesure;
  7. use App\Entity\PieceMesure;
  8. use App\Entity\ValeursMesures;
  9. use App\Entity\ZoneHomogene;
  10. use Doctrine\Common\Collections\ArrayCollection;
  11. use Doctrine\Common\Collections\Collection;
  12. use Sonata\UserBundle\Entity\BaseUser as BaseUser;
  13. /**
  14.  * This file has been generated by the SonataEasyExtendsBundle.
  15.  *
  16.  * @see https://sonata-project.org/easy-extends
  17.  *
  18.  * References:
  19.  * @see http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
  20.  */
  21. class User extends BaseUser
  22. {
  23.     /**
  24.      * @var int
  25.      */
  26.     protected $id;
  27.     private $accesDonneesPersonnelles;
  28.     private $BatimentCreatedBy;
  29.     private $BatimentUpdatedBy;
  30.     private $ValeursMesuresCreatedBy;
  31.     private $ValeursMesuresUpdateBy;
  32.     private $MesureCreatedBy;
  33.     private $MesureUpdatedBy;
  34.     private $ZoneHomogeneCreatedBy;
  35.     private $ZoneHomogeneUpdateBy;
  36.     private $PieceMesureCreatedBy;
  37.     private $PieceMesureUpdateBy;
  38.     private $EtablissementCreatedBy;
  39.     private $EtablissementUpdatedBy;
  40.     private $FournisseurDonnees;
  41.     public function __construct()
  42.     {
  43.         $this->BatimentCreatedBy = new ArrayCollection();
  44.         $this->BatimentUpdatedBy = new ArrayCollection();
  45.         $this->ValeursMesuresCreatedBy = new ArrayCollection();
  46.         $this->ValeursMesuresUpdateBy = new ArrayCollection();
  47.         $this->MesureCreatedBy = new ArrayCollection();
  48.         $this->MesureUpdatedBy = new ArrayCollection();
  49.         $this->ZoneHomogeneCreatedBy = new ArrayCollection();
  50.         $this->ZoneHomogeneUpdateBy = new ArrayCollection();
  51.         $this->PieceMesureCreatedBy = new ArrayCollection();
  52.         $this->PieceMesureUpdateBy = new ArrayCollection();
  53.         $this->EtablissementCreatedBy = new ArrayCollection();
  54.         $this->EtablissementUpdatedBy = new ArrayCollection();
  55.     }
  56.     /**
  57.      * Get id.
  58.      *
  59.      * @return int $id
  60.      */
  61.     public function getId()
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getAccesDonneesPersonnelles(): ?bool
  66.     {
  67.         return $this->accesDonneesPersonnelles;
  68.     }
  69.     public function setAccesDonneesPersonnelles(?bool $accesDonneesPersonnelles): self
  70.     {
  71.         $this->accesDonneesPersonnelles $accesDonneesPersonnelles;
  72.         return $this;
  73.     }
  74.     /**
  75.      * @return Collection<int, Batiment>
  76.      */
  77.     public function getBatimentCreatedBy(): Collection
  78.     {
  79.         return $this->BatimentCreatedBy;
  80.     }
  81.     public function addBatimentCreatedBy(Batiment $batimentCreatedBy): self
  82.     {
  83.         if (!$this->BatimentCreatedBy->contains($batimentCreatedBy)) {
  84.             $this->BatimentCreatedBy[] = $batimentCreatedBy;
  85.             $batimentCreatedBy->setCreatedBy($this);
  86.         }
  87.         return $this;
  88.     }
  89.     public function removeBatimentCreatedBy(Batiment $batimentCreatedBy): self
  90.     {
  91.         if ($this->BatimentCreatedBy->removeElement($batimentCreatedBy)) {
  92.             // set the owning side to null (unless already changed)
  93.             if ($batimentCreatedBy->getCreatedBy() === $this) {
  94.                 $batimentCreatedBy->setCreatedBy(null);
  95.             }
  96.         }
  97.         return $this;
  98.     }
  99.     /**
  100.      * @return Collection<int, Batiment>
  101.      */
  102.     public function getBatimentUpdatedBy(): Collection
  103.     {
  104.         return $this->BatimentUpdatedBy;
  105.     }
  106.     public function addBatimentUpdatedBy(Batiment $batimentUpdatedBy): self
  107.     {
  108.         if (!$this->BatimentUpdatedBy->contains($batimentUpdatedBy)) {
  109.             $this->BatimentUpdatedBy[] = $batimentUpdatedBy;
  110.             $batimentUpdatedBy->setUpdatedBy($this);
  111.         }
  112.         return $this;
  113.     }
  114.     public function removeBatimentUpdatedBy(Batiment $batimentUpdatedBy): self
  115.     {
  116.         if ($this->BatimentUpdatedBy->removeElement($batimentUpdatedBy)) {
  117.             // set the owning side to null (unless already changed)
  118.             if ($batimentUpdatedBy->getUpdatedBy() === $this) {
  119.                 $batimentUpdatedBy->setUpdatedBy(null);
  120.             }
  121.         }
  122.         return $this;
  123.     }
  124.     /**
  125.      * @return Collection<int, ValeursMesures>
  126.      */
  127.     public function getValeursMesuresCreatedBy(): Collection
  128.     {
  129.         return $this->ValeursMesuresCreatedBy;
  130.     }
  131.     public function addValeursMesuresCreatedBy(ValeursMesures $valeursMesuresCreatedBy): self
  132.     {
  133.         if (!$this->ValeursMesuresCreatedBy->contains($valeursMesuresCreatedBy)) {
  134.             $this->ValeursMesuresCreatedBy[] = $valeursMesuresCreatedBy;
  135.             $valeursMesuresCreatedBy->setCreatedBy($this);
  136.         }
  137.         return $this;
  138.     }
  139.     public function removeValeursMesuresCreatedBy(ValeursMesures $valeursMesuresCreatedBy): self
  140.     {
  141.         if ($this->ValeursMesuresCreatedBy->removeElement($valeursMesuresCreatedBy)) {
  142.             // set the owning side to null (unless already changed)
  143.             if ($valeursMesuresCreatedBy->getCreatedBy() === $this) {
  144.                 $valeursMesuresCreatedBy->setCreatedBy(null);
  145.             }
  146.         }
  147.         return $this;
  148.     }
  149.     /**
  150.      * @return Collection<int, ValeursMesures>
  151.      */
  152.     public function getValeursMesuresUpdateBy(): Collection
  153.     {
  154.         return $this->ValeursMesuresUpdateBy;
  155.     }
  156.     public function addValeursMesuresUpdateBy(ValeursMesures $valeursMesuresUpdateBy): self
  157.     {
  158.         if (!$this->ValeursMesuresUpdateBy->contains($valeursMesuresUpdateBy)) {
  159.             $this->ValeursMesuresUpdateBy[] = $valeursMesuresUpdateBy;
  160.             $valeursMesuresUpdateBy->setUpdateBy($this);
  161.         }
  162.         return $this;
  163.     }
  164.     public function removeValeursMesuresUpdateBy(ValeursMesures $valeursMesuresUpdateBy): self
  165.     {
  166.         if ($this->ValeursMesuresUpdateBy->removeElement($valeursMesuresUpdateBy)) {
  167.             // set the owning side to null (unless already changed)
  168.             if ($valeursMesuresUpdateBy->getUpdateBy() === $this) {
  169.                 $valeursMesuresUpdateBy->setUpdateBy(null);
  170.             }
  171.         }
  172.         return $this;
  173.     }
  174.     /**
  175.      * @return Collection<int, Mesure>
  176.      */
  177.     public function getMesureCreatedBy(): Collection
  178.     {
  179.         return $this->MesureCreatedBy;
  180.     }
  181.     public function addMesureCreatedBy(Mesure $mesureCreatedBy): self
  182.     {
  183.         if (!$this->MesureCreatedBy->contains($mesureCreatedBy)) {
  184.             $this->MesureCreatedBy[] = $mesureCreatedBy;
  185.             $mesureCreatedBy->setCreatedBy($this);
  186.         }
  187.         return $this;
  188.     }
  189.     public function removeMesureCreatedBy(Mesure $mesureCreatedBy): self
  190.     {
  191.         if ($this->MesureCreatedBy->removeElement($mesureCreatedBy)) {
  192.             // set the owning side to null (unless already changed)
  193.             if ($mesureCreatedBy->getCreatedBy() === $this) {
  194.                 $mesureCreatedBy->setCreatedBy(null);
  195.             }
  196.         }
  197.         return $this;
  198.     }
  199.     /**
  200.      * @return Collection<int, Mesure>
  201.      */
  202.     public function getMesureUpdatedBy(): Collection
  203.     {
  204.         return $this->MesureUpdatedBy;
  205.     }
  206.     public function addMesureUpdatedBy(Mesure $mesureUpdatedBy): self
  207.     {
  208.         if (!$this->MesureUpdatedBy->contains($mesureUpdatedBy)) {
  209.             $this->MesureUpdatedBy[] = $mesureUpdatedBy;
  210.             $mesureUpdatedBy->setUpdatedBy($this);
  211.         }
  212.         return $this;
  213.     }
  214.     public function removeMesureUpdatedBy(Mesure $mesureUpdatedBy): self
  215.     {
  216.         if ($this->MesureUpdatedBy->removeElement($mesureUpdatedBy)) {
  217.             // set the owning side to null (unless already changed)
  218.             if ($mesureUpdatedBy->getUpdatedBy() === $this) {
  219.                 $mesureUpdatedBy->setUpdatedBy(null);
  220.             }
  221.         }
  222.         return $this;
  223.     }
  224.     /**
  225.      * @return Collection<int, ZoneHomogene>
  226.      */
  227.     public function getZoneHomogeneCreatedBy(): Collection
  228.     {
  229.         return $this->ZoneHomogeneCreatedBy;
  230.     }
  231.     public function addZoneHomogeneCreatedBy(ZoneHomogene $zoneHomogeneCreatedBy): self
  232.     {
  233.         if (!$this->ZoneHomogeneCreatedBy->contains($zoneHomogeneCreatedBy)) {
  234.             $this->ZoneHomogeneCreatedBy[] = $zoneHomogeneCreatedBy;
  235.             $zoneHomogeneCreatedBy->setCreatedBy($this);
  236.         }
  237.         return $this;
  238.     }
  239.     public function removeZoneHomogeneCreatedBy(ZoneHomogene $zoneHomogeneCreatedBy): self
  240.     {
  241.         if ($this->ZoneHomogeneCreatedBy->removeElement($zoneHomogeneCreatedBy)) {
  242.             // set the owning side to null (unless already changed)
  243.             if ($zoneHomogeneCreatedBy->getCreatedBy() === $this) {
  244.                 $zoneHomogeneCreatedBy->setCreatedBy(null);
  245.             }
  246.         }
  247.         return $this;
  248.     }
  249.     /**
  250.      * @return Collection<int, ZoneHomogene>
  251.      */
  252.     public function getZoneHomogeneUpdateBy(): Collection
  253.     {
  254.         return $this->ZoneHomogeneUpdateBy;
  255.     }
  256.     public function addZoneHomogeneUpdateBy(ZoneHomogene $zoneHomogeneUpdateBy): self
  257.     {
  258.         if (!$this->ZoneHomogeneUpdateBy->contains($zoneHomogeneUpdateBy)) {
  259.             $this->ZoneHomogeneUpdateBy[] = $zoneHomogeneUpdateBy;
  260.             $zoneHomogeneUpdateBy->setUpdateBy($this);
  261.         }
  262.         return $this;
  263.     }
  264.     public function removeZoneHomogeneUpdateBy(ZoneHomogene $zoneHomogeneUpdateBy): self
  265.     {
  266.         if ($this->ZoneHomogeneUpdateBy->removeElement($zoneHomogeneUpdateBy)) {
  267.             // set the owning side to null (unless already changed)
  268.             if ($zoneHomogeneUpdateBy->getUpdateBy() === $this) {
  269.                 $zoneHomogeneUpdateBy->setUpdateBy(null);
  270.             }
  271.         }
  272.         return $this;
  273.     }
  274.     /**
  275.      * @return Collection<int, PieceMesure>
  276.      */
  277.     public function getPieceMesureCreatedBy(): Collection
  278.     {
  279.         return $this->PieceMesureCreatedBy;
  280.     }
  281.     public function addPieceMesureCreatedBy(PieceMesure $pieceMesureCreatedBy): self
  282.     {
  283.         if (!$this->PieceMesureCreatedBy->contains($pieceMesureCreatedBy)) {
  284.             $this->PieceMesureCreatedBy[] = $pieceMesureCreatedBy;
  285.             $pieceMesureCreatedBy->setCreatedBy($this);
  286.         }
  287.         return $this;
  288.     }
  289.     public function removePieceMesureCreatedBy(PieceMesure $pieceMesureCreatedBy): self
  290.     {
  291.         if ($this->PieceMesureCreatedBy->removeElement($pieceMesureCreatedBy)) {
  292.             // set the owning side to null (unless already changed)
  293.             if ($pieceMesureCreatedBy->getCreatedBy() === $this) {
  294.                 $pieceMesureCreatedBy->setCreatedBy(null);
  295.             }
  296.         }
  297.         return $this;
  298.     }
  299.     /**
  300.      * @return Collection<int, PieceMesure>
  301.      */
  302.     public function getPieceMesureUpdateBy(): Collection
  303.     {
  304.         return $this->PieceMesureUpdateBy;
  305.     }
  306.     public function addPieceMesureUpdateBy(PieceMesure $pieceMesureUpdateBy): self
  307.     {
  308.         if (!$this->PieceMesureUpdateBy->contains($pieceMesureUpdateBy)) {
  309.             $this->PieceMesureUpdateBy[] = $pieceMesureUpdateBy;
  310.             $pieceMesureUpdateBy->setUpdateBy($this);
  311.         }
  312.         return $this;
  313.     }
  314.     public function removePieceMesureUpdateBy(PieceMesure $pieceMesureUpdateBy): self
  315.     {
  316.         if ($this->PieceMesureUpdateBy->removeElement($pieceMesureUpdateBy)) {
  317.             // set the owning side to null (unless already changed)
  318.             if ($pieceMesureUpdateBy->getUpdateBy() === $this) {
  319.                 $pieceMesureUpdateBy->setUpdateBy(null);
  320.             }
  321.         }
  322.         return $this;
  323.     }
  324.     /**
  325.      * @return Collection<int, Etablissement>
  326.      */
  327.     public function getEtablissementCreatedBy(): Collection
  328.     {
  329.         return $this->EtablissementCreatedBy;
  330.     }
  331.     public function addEtablissementCreatedBy(Etablissement $etablissementCreatedBy): self
  332.     {
  333.         if (!$this->EtablissementCreatedBy->contains($etablissementCreatedBy)) {
  334.             $this->EtablissementCreatedBy[] = $etablissementCreatedBy;
  335.             $etablissementCreatedBy->setCreatedBy($this);
  336.         }
  337.         return $this;
  338.     }
  339.     public function removeEtablissementCreatedBy(Etablissement $etablissementCreatedBy): self
  340.     {
  341.         if ($this->EtablissementCreatedBy->removeElement($etablissementCreatedBy)) {
  342.             // set the owning side to null (unless already changed)
  343.             if ($etablissementCreatedBy->getCreatedBy() === $this) {
  344.                 $etablissementCreatedBy->setCreatedBy(null);
  345.             }
  346.         }
  347.         return $this;
  348.     }
  349.     /**
  350.      * @return Collection<int, Etablissement>
  351.      */
  352.     public function getEtablissementUpdatedBy(): Collection
  353.     {
  354.         return $this->EtablissementUpdatedBy;
  355.     }
  356.     public function addEtablissementUpdatedBy(Etablissement $etablissementUpdatedBy): self
  357.     {
  358.         if (!$this->EtablissementUpdatedBy->contains($etablissementUpdatedBy)) {
  359.             $this->EtablissementUpdatedBy[] = $etablissementUpdatedBy;
  360.             $etablissementUpdatedBy->setUpdatedBy($this);
  361.         }
  362.         return $this;
  363.     }
  364.     public function removeEtablissementUpdatedBy(Etablissement $etablissementUpdatedBy): self
  365.     {
  366.         if ($this->EtablissementUpdatedBy->removeElement($etablissementUpdatedBy)) {
  367.             // set the owning side to null (unless already changed)
  368.             if ($etablissementUpdatedBy->getUpdatedBy() === $this) {
  369.                 $etablissementUpdatedBy->setUpdatedBy(null);
  370.             }
  371.         }
  372.         return $this;
  373.     }
  374.     public function getFournisseurDonnees(): ?FournisseurDonnees
  375.     {
  376.         return $this->FournisseurDonnees;
  377.     }
  378.     public function setFournisseurDonnees(?FournisseurDonnees $FournisseurDonnees): self
  379.     {
  380.         $this->FournisseurDonnees $FournisseurDonnees;
  381.         return $this;
  382.     }
  383.     public function isAccesDonneesPersonnelles(): ?bool
  384.     {
  385.         return $this->accesDonneesPersonnelles;
  386.     }
  387. }