src/Entity/User.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Security\Core\User\UserInterface;
  7. /**
  8.  * User
  9.  *
  10.  * @ORM\Table(name="dn_user")
  11.  * @ORM\Entity
  12.  */
  13. class User implements UserInterface
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  21.      * @ORM\SequenceGenerator(sequenceName="dn_user_id_seq", allocationSize=1, initialValue=1)
  22.      */
  23.     protected $id;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, unique=true)
  26.      */
  27.     private $username;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true, unique=true)
  30.      */
  31.     private $leiUserId;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $leiPwKey;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true, unique=true)
  38.      */
  39.     private $tourinsoftUserId;
  40.     /**
  41.      * @ORM\Column(type="string", length=2000, nullable=true)
  42.      */
  43.     private $tourinsoftToken;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true, unique=true)
  46.      */
  47.     private $apidaeUserId;
  48.     /**
  49.      * @ORM\Column(type="string", length=255, unique=true)
  50.      */
  51.     private $email;
  52.     /**
  53.      * @ORM\Column(type="string", length=500)
  54.      */
  55.     private $password;
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true, length=255)
  58.      */
  59.     private $firstname;
  60.     /**
  61.      * @ORM\Column(type="string", nullable=true, length=255)
  62.      */
  63.     private $lastname;
  64.     /**
  65.      * @ORM\Column(name="is_active", type="boolean")
  66.      */
  67.     private $isActive;
  68.     /**
  69.      * @ORM\Column(name="roles", type="array")
  70.      */
  71.     private $roles;
  72.     /**
  73.      * @var \App\Entity\DnsitEntity
  74.      *
  75.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="users")
  76.      * @ORM\JoinColumns({
  77.      *   @ORM\JoinColumn(name="entity", referencedColumnName="id")
  78.      * })
  79.      */
  80.     private $entity;
  81.     /**
  82.      * @var \Doctrine\Common\Collections\Collection
  83.      *
  84.      * @ORM\OneToMany(targetEntity="App\Entity\Annonce", mappedBy="owner", cascade={"persist","remove"})
  85.      */
  86.     private $annonces;
  87.     /**
  88.      * @var \Doctrine\Common\Collections\Collection
  89.      *
  90.      * @ORM\OneToMany(targetEntity="App\Entity\TagAnnonce", mappedBy="owner", cascade={"persist","remove"})
  91.      */
  92.     private $tagAnnonces;
  93.     /**
  94.      * @var \Doctrine\Common\Collections\Collection
  95.      *
  96.      * @ORM\OneToMany(targetEntity="App\Entity\AnnonceSpace", mappedBy="owner", cascade={"persist","remove"})
  97.      */
  98.     private $annonceSpaces;
  99.     /**
  100.      * @var \Doctrine\Common\Collections\Collection
  101.      *
  102.      * @ORM\OneToMany(targetEntity="App\Entity\Site", mappedBy="owner", cascade={"persist","remove"})
  103.      */
  104.     private $sites;
  105.     /**
  106.      * @var \Doctrine\Common\Collections\Collection
  107.      *
  108.      * @ORM\OneToMany(targetEntity="App\Entity\Block", mappedBy="owner", cascade={"persist","remove"})
  109.      */
  110.     private $blocks;
  111.     /**
  112.      * @var \Doctrine\Common\Collections\Collection
  113.      *
  114.      * @ORM\OneToMany(targetEntity="App\Entity\BlockField", mappedBy="owner", cascade={"persist","remove"})
  115.      */
  116.     private $blockFields;
  117.     /**
  118.      * @var \Doctrine\Common\Collections\Collection
  119.      *
  120.      * @ORM\OneToMany(targetEntity="App\Entity\BlockFieldItem", mappedBy="owner", cascade={"persist","remove"})
  121.      */
  122.     private $blockFieldItems;
  123.     /**
  124.      * @var \Doctrine\Common\Collections\Collection
  125.      *
  126.      * @ORM\OneToMany(targetEntity="App\Entity\Selection", mappedBy="owner", cascade={"persist","remove"})
  127.      */
  128.     private $selections;
  129.     /**
  130.      * @var \Doctrine\Common\Collections\Collection
  131.      *
  132.      * @ORM\OneToMany(targetEntity="App\Entity\SelectionItem", mappedBy="owner", cascade={"persist","remove"})
  133.      */
  134.     private $selectionItems;
  135.     /**
  136.      * @var \Doctrine\Common\Collections\Collection
  137.      *
  138.      * @ORM\OneToMany(targetEntity="App\Entity\WebEngine", mappedBy="owner", cascade={"persist","remove"})
  139.      */
  140.     private $webEngines;
  141.     /**
  142.      * @var \Doctrine\Common\Collections\Collection
  143.      *
  144.      * @ORM\OneToMany(targetEntity="App\Entity\EditionsPlanner", mappedBy="owner", cascade={"persist","remove"})
  145.      */
  146.     private $editionsPlanners;
  147.     /**
  148.      * @var \Doctrine\Common\Collections\Collection
  149.      *
  150.      * @ORM\OneToMany(targetEntity="App\Entity\WebEngineSection", mappedBy="owner", cascade={"persist","remove"})
  151.      */
  152.     private $webEngineSections;
  153.     /**
  154.      * @var \Doctrine\Common\Collections\Collection
  155.      *
  156.      * @ORM\OneToMany(targetEntity="App\Entity\WebEngineSubSection", mappedBy="owner", cascade={"persist","remove"})
  157.      */
  158.     private $webEngineSubSections;
  159.     /**
  160.      * @var \Doctrine\Common\Collections\Collection
  161.      *
  162.      * @ORM\OneToMany(targetEntity="App\Entity\WebSubSectionFilter", mappedBy="owner", cascade={"persist","remove"})
  163.      */
  164.     private $webSubSectionFilters;
  165.     /**
  166.      * @var \Doctrine\Common\Collections\Collection
  167.      *
  168.      * @ORM\OneToMany(targetEntity="App\Entity\WebFilter", mappedBy="owner", cascade={"persist","remove"})
  169.      */
  170.     private $webFilters;
  171.     /**
  172.      * @var \Doctrine\Common\Collections\Collection
  173.      *
  174.      * @ORM\OneToMany(targetEntity="App\Entity\WebFilterItem", mappedBy="owner", cascade={"persist","remove"})
  175.      */
  176.     private $webFilterItems;
  177.     /**
  178.      * @var \Doctrine\Common\Collections\Collection
  179.      *
  180.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="owner", cascade={"persist","remove"})
  181.      */
  182.     private $webLists;
  183.     /**
  184.      * @var \Doctrine\Common\Collections\Collection
  185.      *
  186.      * @ORM\OneToMany(targetEntity="App\Entity\ListModel", mappedBy="owner", cascade={"persist","remove"})
  187.      */
  188.     private $listModels;
  189.     /**
  190.      * @var \Doctrine\Common\Collections\Collection
  191.      *
  192.      * @ORM\OneToMany(targetEntity="App\Entity\WebListBlock", mappedBy="owner", cascade={"persist","remove"})
  193.      */
  194.     private $webListBlocks;
  195.     /**
  196.      * @var \Doctrine\Common\Collections\Collection
  197.      *
  198.      * @ORM\OneToMany(targetEntity="App\Entity\WebPage", mappedBy="owner", cascade={"persist","remove"})
  199.      */
  200.     private $webPages;
  201.     /**
  202.      * @var \Doctrine\Common\Collections\Collection
  203.      *
  204.      * @ORM\OneToMany(targetEntity="App\Entity\WebPageBlock", mappedBy="owner", cascade={"persist","remove"})
  205.      */
  206.     private $webPageBlocks;
  207.     /**
  208.      * @var \Doctrine\Common\Collections\Collection
  209.      *
  210.      * @ORM\OneToMany(targetEntity="App\Entity\Media", mappedBy="owner", cascade={"persist","remove"})
  211.      */
  212.     private $medias;
  213.     /**
  214.      * @var \Doctrine\Common\Collections\Collection
  215.      *
  216.      * @ORM\OneToMany(targetEntity="App\Entity\EditionModele", mappedBy="owner", cascade={"persist","remove"})
  217.      */
  218.     private $editionModeles;
  219.     /**
  220.      * @var \Doctrine\Common\Collections\Collection
  221.      *
  222.      * @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubriqueDynamiqueModele", mappedBy="owner", cascade={"persist","remove"})
  223.      */
  224.     private $editionModeleRubriqueDynamiques;
  225.     /**
  226.      * @var \Doctrine\Common\Collections\Collection
  227.      *
  228.      * @ORM\OneToMany(targetEntity="App\Entity\Tag", mappedBy="owner", cascade={"persist","remove"})
  229.      */
  230.     private $tags;
  231.     /**
  232.      * @var \Doctrine\Common\Collections\Collection
  233.      *
  234.      * @ORM\OneToMany(targetEntity="App\Entity\TagMedia", mappedBy="owner", cascade={"persist","remove"})
  235.      */
  236.     private $mediaTags;
  237.     /**
  238.      * @var \Doctrine\Common\Collections\Collection
  239.      *
  240.      * @ORM\OneToMany(targetEntity="App\Entity\DnsitScoringProfile", mappedBy="owner", cascade={"persist","remove"})
  241.      */
  242.     private $scoringProfiles;
  243.     /**
  244.      * @var \Doctrine\Common\Collections\Collection
  245.      *
  246.      * @ORM\OneToMany(targetEntity="App\Entity\DnsitScoring", mappedBy="owner", cascade={"persist","remove"})
  247.      */
  248.     private $scorings;
  249.     /**
  250.      * @ORM\OneToMany(targetEntity="App\Entity\DiaporamaBlock", mappedBy="owner")
  251.      */
  252.     private $diaporamaBlocks;
  253.     /**
  254.      * @ORM\OneToMany(targetEntity="App\Entity\EditionLegende", mappedBy="owner")
  255.      */
  256.     private $editionLegendes;
  257.     /**
  258.      * @ORM\OneToMany(targetEntity="App\Entity\EditionLegendeItem", mappedBy="owner")
  259.      */
  260.     private $editionLegendeItems;
  261.     /**
  262.      * @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="owner")
  263.      */
  264.     private $diaporamas;
  265.     /**
  266.      * @ORM\OneToMany(targetEntity="App\Entity\EditionPlanification", mappedBy="owner")
  267.      */
  268.     private $editionPlanifications;
  269.     /**
  270.      * @var \Doctrine\Common\Collections\Collection
  271.      * @ORM\OneToMany(targetEntity="App\Entity\WebMap", mappedBy="owner")
  272.      */
  273.     private $webMaps;
  274.     /**
  275.      * @var \Doctrine\Common\Collections\Collection
  276.      * @ORM\OneToMany(targetEntity="App\Entity\DeeplTranslationConfig", mappedBy="owner")
  277.      */
  278.     private $deeplTranslationConfigs;
  279.     /**
  280.      * @var \Doctrine\Common\Collections\Collection
  281.      * @ORM\OneToMany(targetEntity="App\Entity\DeeplTranslationParam", mappedBy="owner")
  282.      */
  283.     private $deeplTranslationParams;
  284.     /**
  285.      * @var \Doctrine\Common\Collections\Collection
  286.      * @ORM\OneToMany(targetEntity="App\Entity\ApidaeTranslationConfig", mappedBy="owner")
  287.      */
  288.     private $apidaeTranslationConfigs;
  289.     /**
  290.      * @var \Doctrine\Common\Collections\Collection
  291.      * @ORM\OneToMany(targetEntity="App\Entity\ApidaeWriteConfiguration", mappedBy="owner")
  292.      */
  293.     private $apidaeWriteConfigurations;
  294.     /**
  295.      * @ORM\Column(type="json", nullable=true)
  296.      */
  297.     private $params;
  298.     /**
  299.      * @var \Doctrine\Common\Collections\Collection
  300.      *
  301.      * @ORM\OneToMany(targetEntity="App\Entity\BridgeUserParameter", mappedBy="owner", cascade={"persist","remove"})
  302.      */
  303.     private $bridgeParameters;
  304.     /**
  305.      * @var Collection|ResetPasswordRequest[]
  306.      *
  307.      * @ORM\OneToMany(targetEntity="App\Entity\ResetPasswordRequest", mappedBy="user", cascade={"persist", "remove"})
  308.      */
  309.     private $resetPasswordRequests;
  310.     /**
  311.      * @var \Doctrine\Common\Collections\Collection
  312.       *
  313.      * @ORM\OneToMany(targetEntity="App\Entity\ApiChangeHistory", mappedBy="user")
  314.      */
  315.     private $apiChanges;
  316.     /**
  317.      * @var \Doctrine\Common\Collections\Collection
  318.      *
  319.      * @ORM\OneToMany(targetEntity="App\Entity\GuideAccueilDestinataire", mappedBy="owner", cascade={"persist","remove"})
  320.      */
  321.     private $guideAccueilDestinataires;
  322.     /**
  323.      * User constructor.
  324.      * @param $username
  325.      */
  326.     public function __construct(string $username='')
  327.     {
  328.         $this->isActive true;
  329.         $this->username $username;
  330.         $this->blocks = new ArrayCollection();
  331.         $this->blockFields = new ArrayCollection();
  332.         $this->blockFieldItems = new ArrayCollection();
  333.         $this->selections = new ArrayCollection();
  334.         $this->selectionItems = new ArrayCollection();
  335.         $this->editionsPlanners = new ArrayCollection();
  336.         $this->webEngines = new ArrayCollection();
  337.         $this->webEngineSections = new ArrayCollection();
  338.         $this->webEngineSubSections = new ArrayCollection();
  339.         $this->webSubSectionFilters = new ArrayCollection();
  340.         $this->webFilters = new ArrayCollection();
  341.         $this->webFilterItems = new ArrayCollection();
  342.         $this->webLists = new ArrayCollection();
  343.         $this->listModels = new ArrayCollection();
  344.         $this->webListBlocks = new ArrayCollection();
  345.         $this->webPages = new ArrayCollection();
  346.         $this->webPageBlocks = new ArrayCollection();
  347.         $this->medias = new ArrayCollection();
  348.         $this->editionModeles = new ArrayCollection();
  349.         $this->editionModeleRubriqueDynamiques = new ArrayCollection();
  350.         $this->tags = new ArrayCollection();
  351.         $this->annonces = new ArrayCollection();
  352.         $this->tagAnnonces = new ArrayCollection();
  353.         $this->mediaTags = new ArrayCollection();
  354.         $this->scoringProfiles = new ArrayCollection();
  355.         $this->scorings = new ArrayCollection();
  356.         $this->editionLegendes = new ArrayCollection();
  357.         $this->editionLegendeItems = new ArrayCollection();
  358.         $this->diaporamaBlocks = new ArrayCollection();
  359.         $this->diaporamas = new ArrayCollection();
  360.         $this->editionPlanifications = new ArrayCollection();
  361.         $this->webMaps = new ArrayCollection();
  362.         $this->sites = new ArrayCollection();
  363.         $this->deeplTranslationParams = new ArrayCollection();
  364.         $this->deeplTranslationConfigs = new ArrayCollection();
  365.         $this->apidaeTranslationConfigs = new ArrayCollection();
  366.         $this->apidaeWriteConfigurations = new ArrayCollection();
  367.         $this->bridgeParameters = new ArrayCollection();
  368.         $this->resetPasswordRequests = new ArrayCollection();
  369.         $this->apiChanges = new ArrayCollection();
  370.         $this->guideAccueilDestinataires = new ArrayCollection();
  371.         $this->params = ['doNotShowAgain' => false];
  372.     }
  373.     /**
  374.      * @return int
  375.      */
  376.     public function getId(): int
  377.     {
  378.         return $this->id;
  379.     }
  380.     /**
  381.      * @return string
  382.      */
  383.     public function getUsername()
  384.     {
  385.         return $this->username;
  386.     }
  387.     /**
  388.      * @return mixed
  389.      */
  390.     public function getEmail()
  391.     {
  392.         return $this->email;
  393.     }
  394.     /**
  395.      * @param mixed $email
  396.      */
  397.     public function setEmail($email): void
  398.     {
  399.         $this->email $email;
  400.     }
  401.     /**
  402.      * @return string|null
  403.      */
  404.     public function getSalt()
  405.     {
  406.         return null;
  407.     }
  408.     /**
  409.      * @return string
  410.      */
  411.     public function getPassword()
  412.     {
  413.         return $this->password;
  414.     }
  415.     /**
  416.      * @param $password
  417.      */
  418.     public function setPassword($password)
  419.     {
  420.         $this->password $password;
  421.     }
  422.     public function eraseCredentials()
  423.     {
  424.     }
  425.     /**
  426.      * @return mixed
  427.      */
  428.     public function getRoles()
  429.     {
  430.         return $this->roles;
  431.     }
  432.     /**
  433.      * @param mixed $roles
  434.      */
  435.     public function setRoles($roles): void
  436.     {
  437.         $this->roles $roles;
  438.     }
  439.     /**
  440.      * @return mixed
  441.      */
  442.     public function getFirstname()
  443.     {
  444.         return $this->firstname;
  445.     }
  446.     /**
  447.      * @param mixed $firstname
  448.      */
  449.     public function setFirstname($firstname): void
  450.     {
  451.         $this->firstname $firstname;
  452.     }
  453.     /**
  454.      * @return mixed
  455.      */
  456.     public function getLastname()
  457.     {
  458.         return $this->lastname;
  459.     }
  460.     /**
  461.      * @param mixed $lastname
  462.      */
  463.     public function setLastname($lastname): void
  464.     {
  465.         $this->lastname $lastname;
  466.     }
  467.     public function setUsername(string $username): self
  468.     {
  469.         $this->username $username;
  470.         return $this;
  471.     }
  472.     public function getIsActive(): ?bool
  473.     {
  474.         return $this->isActive;
  475.     }
  476.     public function setIsActive(bool $isActive): self
  477.     {
  478.         $this->isActive $isActive;
  479.         return $this;
  480.     }
  481.     public function getLeiUserId(): ?string
  482.     {
  483.         return $this->leiUserId;
  484.     }
  485.     public function setLeiUserId(?string $leiUserId): self
  486.     {
  487.         $this->leiUserId $leiUserId;
  488.         return $this;
  489.     }
  490.     public function getLeiPwKey(): ?string
  491.     {
  492.         return $this->leiPwKey;
  493.     }
  494.     public function setLeiPwKey(?string $leiPwKey): self
  495.     {
  496.         $this->leiPwKey $leiPwKey;
  497.         return $this;
  498.     }
  499.     public function getTourinsoftUserId(): ?string
  500.     {
  501.         return $this->tourinsoftUserId;
  502.     }
  503.     public function setTourinsoftUserId(?string $tourinsoftUserId): self
  504.     {
  505.         $this->tourinsoftUserId $tourinsoftUserId;
  506.         return $this;
  507.     }
  508.     public function getApidaeUserId(): ?string
  509.     {
  510.         return $this->apidaeUserId;
  511.     }
  512.     public function setApidaeUserId(?string $apidaeUserId): self
  513.     {
  514.         $this->apidaeUserId $apidaeUserId;
  515.         return $this;
  516.     }
  517.     public function getTourinsoftToken(): ?string
  518.     {
  519.         return $this->tourinsoftToken;
  520.     }
  521.     public function setTourinsoftToken(?string $tourinsoftToken): self
  522.     {
  523.         $this->tourinsoftToken $tourinsoftToken;
  524.         return $this;
  525.     }
  526.     public function getEntity(): ?DnsitEntity
  527.     {
  528.         return $this->entity;
  529.     }
  530.     public function setEntity(?DnsitEntity $entity): self
  531.     {
  532.         $this->entity $entity;
  533.         return $this;
  534.     }
  535.     /**
  536.      * @return Collection|Annonce[]
  537.      */
  538.     public function getAnnonces(): Collection
  539.     {
  540.         return $this->annonces;
  541.     }
  542.     public function addAnnonce(Annonce $annonce): self
  543.     {
  544.         if (!$this->annonces->contains($annonce)) {
  545.             $this->annonces[] = $annonce;
  546.             $annonce->setEntity($this);
  547.         }
  548.         return $this;
  549.     }
  550.     public function removeAnnonces(Annonce $annonce): self
  551.     {
  552.         if ($this->annonces->contains($annonce)) {
  553.             $this->annonces->removeElement($annonce);
  554.             // set the owning side to null (unless already changed)
  555.             if ($annonce->getEntity() === $this) {
  556.                 $annonce->setEntity(null);
  557.             }
  558.         }
  559.         return $this;
  560.     }
  561.     /**
  562.      * @return Collection|TagAnnonce[]
  563.      */
  564.     public function getTagAnnonces(): Collection
  565.     {
  566.         return $this->tagAnnonces;
  567.     }
  568.     public function addTagAnnonce(TagAnnonce $tagAnnonce): self
  569.     {
  570.         if (!$this->tagAnnonces->contains($tagAnnonce)) {
  571.             $this->tagAnnonces[] = $tagAnnonce;
  572.             $tagAnnonce->setEntity($this);
  573.         }
  574.         return $this;
  575.     }
  576.     public function removeTagAnnonces(TagAnnonce $tagAnnonce): self
  577.     {
  578.         if ($this->tagAnnonces->contains($tagAnnonce)) {
  579.             $this->tagAnnonces->removeElement($tagAnnonce);
  580.             // set the owning side to null (unless already changed)
  581.             if ($tagAnnonce->getEntity() === $this) {
  582.                 $tagAnnonce->setEntity(null);
  583.             }
  584.         }
  585.         return $this;
  586.     }
  587.     /**
  588.      * @return Collection|Site[]
  589.      */
  590.     public function getSites(): Collection
  591.     {
  592.         return $this->sites;
  593.     }
  594.     public function addSite(Site $site): self
  595.     {
  596.         if (!$this->sites->contains($site)) {
  597.             $this->sites[] = $site;
  598.             $site->setOwner($this);
  599.         }
  600.         return $this;
  601.     }
  602.     public function removeSite(Site $site): self
  603.     {
  604.         if ($this->sites->contains($site)) {
  605.             $this->sites->removeElement($site);
  606.             // set the owning side to null (unless already changed)
  607.             if ($site->getOwner() === $this) {
  608.                 $site->setOwner(null);
  609.             }
  610.         }
  611.         return $this;
  612.     }
  613.     /**
  614.      * @return Collection|Block[]
  615.      */
  616.     public function getBlocks(): Collection
  617.     {
  618.         return $this->blocks;
  619.     }
  620.     public function addBlock(Block $block): self
  621.     {
  622.         if (!$this->blocks->contains($block)) {
  623.             $this->blocks[] = $block;
  624.             $block->setOwner($this);
  625.         }
  626.         return $this;
  627.     }
  628.     public function removeBlock(Block $block): self
  629.     {
  630.         if ($this->blocks->contains($block)) {
  631.             $this->blocks->removeElement($block);
  632.             // set the owning side to null (unless already changed)
  633.             if ($block->getOwner() === $this) {
  634.                 $block->setOwner(null);
  635.             }
  636.         }
  637.         return $this;
  638.     }
  639.     /**
  640.      * @return Collection|BlockField[]
  641.      */
  642.     public function getBlockFields(): Collection
  643.     {
  644.         return $this->blockFields;
  645.     }
  646.     public function addBlockField(BlockField $blockField): self
  647.     {
  648.         if (!$this->blockFields->contains($blockField)) {
  649.             $this->blockFields[] = $blockField;
  650.             $blockField->setOwner($this);
  651.         }
  652.         return $this;
  653.     }
  654.     public function removeBlockField(BlockField $blockField): self
  655.     {
  656.         if ($this->blockFields->contains($blockField)) {
  657.             $this->blockFields->removeElement($blockField);
  658.             // set the owning side to null (unless already changed)
  659.             if ($blockField->getOwner() === $this) {
  660.                 $blockField->setOwner(null);
  661.             }
  662.         }
  663.         return $this;
  664.     }
  665.     /**
  666.      * @return Collection|BlockFieldItem[]
  667.      */
  668.     public function getBlockFieldItems(): Collection
  669.     {
  670.         return $this->blockFieldItems;
  671.     }
  672.     public function addBlockFieldItem(BlockFieldItem $blockFieldItem): self
  673.     {
  674.         if (!$this->blockFieldItems->contains($blockFieldItem)) {
  675.             $this->blockFieldItems[] = $blockFieldItem;
  676.             $blockFieldItem->setOwner($this);
  677.         }
  678.         return $this;
  679.     }
  680.     public function removeBlockFieldItem(BlockFieldItem $blockFieldItem): self
  681.     {
  682.         if ($this->blockFieldItems->contains($blockFieldItem)) {
  683.             $this->blockFieldItems->removeElement($blockFieldItem);
  684.             // set the owning side to null (unless already changed)
  685.             if ($blockFieldItem->getOwner() === $this) {
  686.                 $blockFieldItem->setOwner(null);
  687.             }
  688.         }
  689.         return $this;
  690.     }
  691.     /**
  692.      * @return Collection|Selection[]
  693.      */
  694.     public function getSelections(): Collection
  695.     {
  696.         return $this->selections;
  697.     }
  698.     public function addSelection(Selection $selection): self
  699.     {
  700.         if (!$this->selections->contains($selection)) {
  701.             $this->selections[] = $selection;
  702.             $selection->setOwner($this);
  703.         }
  704.         return $this;
  705.     }
  706.     public function removeSelection(Selection $selection): self
  707.     {
  708.         if ($this->selections->contains($selection)) {
  709.             $this->selections->removeElement($selection);
  710.             // set the owning side to null (unless already changed)
  711.             if ($selection->getOwner() === $this) {
  712.                 $selection->setOwner(null);
  713.             }
  714.         }
  715.         return $this;
  716.     }
  717.     /**
  718.      * @return Collection|SelectionItem[]
  719.      */
  720.     public function getSelectionItems(): Collection
  721.     {
  722.         return $this->selectionItems;
  723.     }
  724.     public function addSelectionItem(SelectionItem $selectionItem): self
  725.     {
  726.         if (!$this->selectionItems->contains($selectionItem)) {
  727.             $this->selectionItems[] = $selectionItem;
  728.             $selectionItem->setOwner($this);
  729.         }
  730.         return $this;
  731.     }
  732.     public function removeSelectionItem(SelectionItem $selectionItem): self
  733.     {
  734.         if ($this->selectionItems->contains($selectionItem)) {
  735.             $this->selectionItems->removeElement($selectionItem);
  736.             // set the owning side to null (unless already changed)
  737.             if ($selectionItem->getOwner() === $this) {
  738.                 $selectionItem->setOwner(null);
  739.             }
  740.         }
  741.         return $this;
  742.     }
  743.     /**
  744.      * @return Collection|EditionsPlanner[]
  745.      */
  746.     public function getEditionsPlanners(): Collection
  747.     {
  748.         return $this->editionsPlanners;
  749.     }
  750.     public function addEditionsPlanner(EditionsPlanner $editionsPlanner): self
  751.     {
  752.         if (!$this->editionsPlanners->contains($editionsPlanner)) {
  753.             $this->editionsPlanners[] = $editionsPlanner;
  754.             $editionsPlanner->setOwner($this);
  755.         }
  756.         return $this;
  757.     }
  758.     public function removeEditionsPlanner(EditionsPlanner $editionsPlanner): self
  759.     {
  760.         if ($this->editionsPlanners->contains($editionsPlanner)) {
  761.             $this->editionsPlanners->removeElement($editionsPlanner);
  762.             // set the owning side to null (unless already changed)
  763.             if ($editionsPlanner->getOwner() === $this) {
  764.                 $editionsPlanner->setOwner(null);
  765.             }
  766.         }
  767.         return $this;
  768.     }
  769.     /**
  770.      * @return Collection|WebEngine[]
  771.      */
  772.     public function getWebEngines(): Collection
  773.     {
  774.         return $this->webEngines;
  775.     }
  776.     public function addWebEngine(WebEngine $webEngine): self
  777.     {
  778.         if (!$this->webEngines->contains($webEngine)) {
  779.             $this->webEngines[] = $webEngine;
  780.             $webEngine->setOwner($this);
  781.         }
  782.         return $this;
  783.     }
  784.     public function removeWebEngine(WebEngine $webEngine): self
  785.     {
  786.         if ($this->webEngines->contains($webEngine)) {
  787.             $this->webEngines->removeElement($webEngine);
  788.             // set the owning side to null (unless already changed)
  789.             if ($webEngine->getOwner() === $this) {
  790.                 $webEngine->setOwner(null);
  791.             }
  792.         }
  793.         return $this;
  794.     }
  795.     /**
  796.      * @return Collection|WebEngineSection[]
  797.      */
  798.     public function getWebEngineSections(): Collection
  799.     {
  800.         return $this->webEngineSections;
  801.     }
  802.     public function addWebEngineSection(WebEngineSection $webEngineSection): self
  803.     {
  804.         if (!$this->webEngineSections->contains($webEngineSection)) {
  805.             $this->webEngineSections[] = $webEngineSection;
  806.             $webEngineSection->setOwner($this);
  807.         }
  808.         return $this;
  809.     }
  810.     public function removeWebEngineSection(WebEngineSection $webEngineSection): self
  811.     {
  812.         if ($this->webEngineSections->contains($webEngineSection)) {
  813.             $this->webEngineSections->removeElement($webEngineSection);
  814.             // set the owning side to null (unless already changed)
  815.             if ($webEngineSection->getOwner() === $this) {
  816.                 $webEngineSection->setOwner(null);
  817.             }
  818.         }
  819.         return $this;
  820.     }
  821.     /**
  822.      * @return Collection|WebEngineSubSection[]
  823.      */
  824.     public function getWebEngineSubSections(): Collection
  825.     {
  826.         return $this->webEngineSubSections;
  827.     }
  828.     public function addWebEngineSubSection(WebEngineSubSection $webEngineSubSection): self
  829.     {
  830.         if (!$this->webEngineSubSections->contains($webEngineSubSection)) {
  831.             $this->webEngineSubSections[] = $webEngineSubSection;
  832.             $webEngineSubSection->setOwner($this);
  833.         }
  834.         return $this;
  835.     }
  836.     public function removeWebEngineSubSection(WebEngineSubSection $webEngineSubSection): self
  837.     {
  838.         if ($this->webEngineSubSections->contains($webEngineSubSection)) {
  839.             $this->webEngineSubSections->removeElement($webEngineSubSection);
  840.             // set the owning side to null (unless already changed)
  841.             if ($webEngineSubSection->getOwner() === $this) {
  842.                 $webEngineSubSection->setOwner(null);
  843.             }
  844.         }
  845.         return $this;
  846.     }
  847.     /**
  848.      * @return Collection|WebSubSectionFilter[]
  849.      */
  850.     public function getWebSubSectionFilters(): Collection
  851.     {
  852.         return $this->webSubSectionFilters;
  853.     }
  854.     public function addWebSubSectionFilter(WebSubSectionFilter $webSubSectionFilter): self
  855.     {
  856.         if (!$this->webSubSectionFilters->contains($webSubSectionFilter)) {
  857.             $this->webSubSectionFilters[] = $webSubSectionFilter;
  858.             $webSubSectionFilter->setOwner($this);
  859.         }
  860.         return $this;
  861.     }
  862.     public function removeWebSubSectionFilter(WebSubSectionFilter $webSubSectionFilter): self
  863.     {
  864.         if ($this->webSubSectionFilters->contains($webSubSectionFilter)) {
  865.             $this->webSubSectionFilters->removeElement($webSubSectionFilter);
  866.             // set the owning side to null (unless already changed)
  867.             if ($webSubSectionFilter->getOwner() === $this) {
  868.                 $webSubSectionFilter->setOwner(null);
  869.             }
  870.         }
  871.         return $this;
  872.     }
  873.     /**
  874.      * @return Collection|WebFilter[]
  875.      */
  876.     public function getWebFilters(): Collection
  877.     {
  878.         return $this->webFilters;
  879.     }
  880.     public function addWebFilter(WebFilter $webFilter): self
  881.     {
  882.         if (!$this->webFilters->contains($webFilter)) {
  883.             $this->webFilters[] = $webFilter;
  884.             $webFilter->setOwner($this);
  885.         }
  886.         return $this;
  887.     }
  888.     public function removeWebFilter(WebFilter $webFilter): self
  889.     {
  890.         if ($this->webFilters->contains($webFilter)) {
  891.             $this->webFilters->removeElement($webFilter);
  892.             // set the owning side to null (unless already changed)
  893.             if ($webFilter->getOwner() === $this) {
  894.                 $webFilter->setOwner(null);
  895.             }
  896.         }
  897.         return $this;
  898.     }
  899.     /**
  900.      * @return Collection|WebFilterItem[]
  901.      */
  902.     public function getWebFilterItems(): Collection
  903.     {
  904.         return $this->webFilterItems;
  905.     }
  906.     public function addWebFilterItem(WebFilterItem $webFilterItem): self
  907.     {
  908.         if (!$this->webFilterItems->contains($webFilterItem)) {
  909.             $this->webFilterItems[] = $webFilterItem;
  910.             $webFilterItem->setOwner($this);
  911.         }
  912.         return $this;
  913.     }
  914.     public function removeWebFilterItem(WebFilterItem $webFilterItem): self
  915.     {
  916.         if ($this->webFilterItems->contains($webFilterItem)) {
  917.             $this->webFilterItems->removeElement($webFilterItem);
  918.             // set the owning side to null (unless already changed)
  919.             if ($webFilterItem->getOwner() === $this) {
  920.                 $webFilterItem->setOwner(null);
  921.             }
  922.         }
  923.         return $this;
  924.     }
  925.     /**
  926.      * @return Collection|WebList[]
  927.      */
  928.     public function getWebLists(): Collection
  929.     {
  930.         return $this->webLists;
  931.     }
  932.     public function addWebList(WebList $webList): self
  933.     {
  934.         if (!$this->webLists->contains($webList)) {
  935.             $this->webLists[] = $webList;
  936.             $webList->setOwner($this);
  937.         }
  938.         return $this;
  939.     }
  940.     public function removeWebList(WebList $webList): self
  941.     {
  942.         if ($this->webLists->contains($webList)) {
  943.             $this->webLists->removeElement($webList);
  944.             // set the owning side to null (unless already changed)
  945.             if ($webList->getOwner() === $this) {
  946.                 $webList->setOwner(null);
  947.             }
  948.         }
  949.         return $this;
  950.     }
  951.     /**
  952.      * @return Collection|ListModel[]
  953.      */
  954.     public function getListModels(): Collection
  955.     {
  956.         return $this->listModels;
  957.     }
  958.     public function addListModel(ListModel $listModel): self
  959.     {
  960.         if (!$this->listModels->contains($listModel)) {
  961.             $this->listModels[] = $listModel;
  962.             $listModel->setOwner($this);
  963.         }
  964.         return $this;
  965.     }
  966.     public function removeListModel(ListModel $listModel): self
  967.     {
  968.         if ($this->listModels->contains($listModel)) {
  969.             $this->listModels->removeElement($listModel);
  970.             // set the owning side to null (unless already changed)
  971.             if ($listModel->getOwner() === $this) {
  972.                 $listModel->setOwner(null);
  973.             }
  974.         }
  975.         return $this;
  976.     }
  977.     /**
  978.      * @return Collection|WebListBlock[]
  979.      */
  980.     public function getWebListBlocks(): Collection
  981.     {
  982.         return $this->webListBlocks;
  983.     }
  984.     public function addWebListBlock(WebListBlock $webListBlock): self
  985.     {
  986.         if (!$this->webListBlocks->contains($webListBlock)) {
  987.             $this->webListBlocks[] = $webListBlock;
  988.             $webListBlock->setOwner($this);
  989.         }
  990.         return $this;
  991.     }
  992.     public function removeWebListBlock(WebListBlock $webListBlock): self
  993.     {
  994.         if ($this->webListBlocks->contains($webListBlock)) {
  995.             $this->webListBlocks->removeElement($webListBlock);
  996.             // set the owning side to null (unless already changed)
  997.             if ($webListBlock->getOwner() === $this) {
  998.                 $webListBlock->setOwner(null);
  999.             }
  1000.         }
  1001.         return $this;
  1002.     }
  1003.     /**
  1004.      * @return Collection|WebPage[]
  1005.      */
  1006.     public function getWebPages(): Collection
  1007.     {
  1008.         return $this->webPages;
  1009.     }
  1010.     public function addWebPage(WebPage $webPage): self
  1011.     {
  1012.         if (!$this->webPages->contains($webPage)) {
  1013.             $this->webPages[] = $webPage;
  1014.             $webPage->setOwner($this);
  1015.         }
  1016.         return $this;
  1017.     }
  1018.     public function removeWebPage(WebPage $webPage): self
  1019.     {
  1020.         if ($this->webPages->contains($webPage)) {
  1021.             $this->webPages->removeElement($webPage);
  1022.             // set the owning side to null (unless already changed)
  1023.             if ($webPage->getOwner() === $this) {
  1024.                 $webPage->setOwner(null);
  1025.             }
  1026.         }
  1027.         return $this;
  1028.     }
  1029.     /**
  1030.      * @return Collection|WebPageBlock[]
  1031.      */
  1032.     public function getWebPageBlocks(): Collection
  1033.     {
  1034.         return $this->webPageBlocks;
  1035.     }
  1036.     public function addWebPageBlock(WebPageBlock $webPageBlock): self
  1037.     {
  1038.         if (!$this->webPageBlocks->contains($webPageBlock)) {
  1039.             $this->webPageBlocks[] = $webPageBlock;
  1040.             $webPageBlock->setOwner($this);
  1041.         }
  1042.         return $this;
  1043.     }
  1044.     public function removeWebPageBlock(WebPageBlock $webPageBlock): self
  1045.     {
  1046.         if ($this->webPageBlocks->contains($webPageBlock)) {
  1047.             $this->webPageBlocks->removeElement($webPageBlock);
  1048.             // set the owning side to null (unless already changed)
  1049.             if ($webPageBlock->getOwner() === $this) {
  1050.                 $webPageBlock->setOwner(null);
  1051.             }
  1052.         }
  1053.         return $this;
  1054.     }
  1055.     /**
  1056.      * @return Collection|Media[]
  1057.      */
  1058.     public function getMedias(): Collection
  1059.     {
  1060.         return $this->webFilters;
  1061.     }
  1062.     public function addMedia(Media $media): self
  1063.     {
  1064.         if (!$this->medias->contains($media)) {
  1065.             $this->medias[] = $media;
  1066.             $media->setOwner($this);
  1067.         }
  1068.         return $this;
  1069.     }
  1070.     public function removeMedia(Media $media): self
  1071.     {
  1072.         if ($this->medias->contains($media)) {
  1073.             $this->medias->removeElement($media);
  1074.             // set the owning side to null (unless already changed)
  1075.             if ($media->getOwner() === $this) {
  1076.                 $media->setOwner(null);
  1077.             }
  1078.         }
  1079.         return $this;
  1080.     }
  1081.     /**
  1082.      * @return Collection|EditionModele[]
  1083.      */
  1084.     public function getEditionModeles(): Collection
  1085.     {
  1086.         return $this->editionModeles;
  1087.     }
  1088.     public function addEditionModele(EditionModele $editionModele): self
  1089.     {
  1090.         if (!$this->editionModeles->contains($editionModele)) {
  1091.             $this->editionModeles[] = $editionModele;
  1092.             $editionModele->setOwner($this);
  1093.         }
  1094.         return $this;
  1095.     }
  1096.     public function removeEditionModele(EditionModele $editionModele): self
  1097.     {
  1098.         if ($this->editionModeles->contains($editionModele)) {
  1099.             $this->editionModeles->removeElement($editionModele);
  1100.             // set the owning side to null (unless already changed)
  1101.             if ($editionModele->getOwner() === $this) {
  1102.                 $editionModele->setOwner(null);
  1103.             }
  1104.         }
  1105.         return $this;
  1106.     }
  1107.     /**
  1108.      * @return Collection|EditionModeleRubriqueDynamiqueModele[]
  1109.      */
  1110.     public function getEditionModeleRubriqueDynamiques(): Collection
  1111.     {
  1112.         return $this->editionModeleRubriqueDynamiques;
  1113.     }
  1114.     public function addEditionModeleRubriqueDynamique(EditionModeleRubriqueDynamiqueModele $editionModeleRubriqueDynamique): self
  1115.     {
  1116.         if (!$this->editionModeleRubriqueDynamiques->contains($editionModeleRubriqueDynamique)) {
  1117.             $this->editionModeleRubriqueDynamiques[] = $editionModeleRubriqueDynamique;
  1118.             $editionModeleRubriqueDynamique->setOwner($this);
  1119.         }
  1120.         return $this;
  1121.     }
  1122.     public function removeEditionModeleRubriqueDynamique(EditionModeleRubriqueDynamiqueModele $editionModeleRubriqueDynamique): self
  1123.     {
  1124.         if ($this->editionModeleRubriqueDynamiques->contains($editionModeleRubriqueDynamique)) {
  1125.             $this->editionModeleRubriqueDynamiques->removeElement($editionModeleRubriqueDynamique);
  1126.             // set the owning side to null (unless already changed)
  1127.             if ($editionModeleRubriqueDynamique->getOwner() === $this) {
  1128.                 $editionModeleRubriqueDynamique->setOwner(null);
  1129.             }
  1130.         }
  1131.         return $this;
  1132.     }
  1133.     /**
  1134.      * @return Collection|Tag[]
  1135.      */
  1136.     public function getTags(): Collection
  1137.     {
  1138.         return $this->tags;
  1139.     }
  1140.     public function addTag(Tag $tag): self
  1141.     {
  1142.         if (!$this->tags->contains($tag)) {
  1143.             $this->tags[] = $tag;
  1144.             $tag->setOwner($this);
  1145.         }
  1146.         return $this;
  1147.     }
  1148.     public function removeTag(Tag $tag): self
  1149.     {
  1150.         if ($this->tags->contains($tag)) {
  1151.             $this->tags->removeElement($tag);
  1152.             // set the owning side to null (unless already changed)
  1153.             if ($tag->getOwner() === $this) {
  1154.                 $tag->setOwner(null);
  1155.             }
  1156.         }
  1157.         return $this;
  1158.     }
  1159.     /**
  1160.      * @return Collection|TagMedia[]
  1161.      */
  1162.     public function getMediaTags(): Collection
  1163.     {
  1164.         return $this->mediaTags;
  1165.     }
  1166.     public function addMediaTag(TagMedia $tagMedia): self
  1167.     {
  1168.         if (!$this->mediaTags->contains($tagMedia)) {
  1169.             $this->mediaTags[] = $tagMedia;
  1170.             $tagMedia->setOwner($this);
  1171.         }
  1172.         return $this;
  1173.     }
  1174.     public function removeMediaTag(TagMedia $tagMedia): self
  1175.     {
  1176.         if ($this->mediaTags->contains($tagMedia)) {
  1177.             $this->mediaTags->removeElement($tagMedia);
  1178.             // set the owning side to null (unless already changed)
  1179.             if ($tagMedia->getOwner() === $this) {
  1180.                 $tagMedia->setOwner(null);
  1181.             }
  1182.         }
  1183.         return $this;
  1184.     }
  1185.     /**
  1186.      * @return Collection|DnsitScoringProfile[]
  1187.      */
  1188.     public function getScoringProfiles(): Collection
  1189.     {
  1190.         return $this->scoringProfiles;
  1191.     }
  1192.     public function addScoringProfile(DnsitScoringProfile $scoringProfile): self
  1193.     {
  1194.         if (!$this->scoringProfiles->contains($scoringProfile)) {
  1195.             $this->scoringProfiles[] = $scoringProfile;
  1196.             $scoringProfile->setOwner($this);
  1197.         }
  1198.         return $this;
  1199.     }
  1200.     public function removeScoringProfile(DnsitScoringProfile $scoringProfile): self
  1201.     {
  1202.         if ($this->scoringProfiles->contains($scoringProfile)) {
  1203.             $this->scoringProfiles->removeElement($scoringProfile);
  1204.             // set the owning side to null (unless already changed)
  1205.             if ($scoringProfile->getOwner() === $this) {
  1206.                 $scoringProfile->setOwner(null);
  1207.             }
  1208.         }
  1209.         return $this;
  1210.     }
  1211.     /**
  1212.      * @return Collection|DnsitScoring[]
  1213.      */
  1214.     public function getScorings(): Collection
  1215.     {
  1216.         return $this->scorings;
  1217.     }
  1218.     public function addScoring(DnsitScoring $scorings): self
  1219.     {
  1220.         if (!$this->scorings->contains($scorings)) {
  1221.             $this->scorings[] = $scorings;
  1222.             $scorings->setOwner($this);
  1223.         }
  1224.         return $this;
  1225.     }
  1226.     public function removeScoring(DnsitScoring $scorings): self
  1227.     {
  1228.         if ($this->scorings->contains($scorings)) {
  1229.             $this->scorings->removeElement($scorings);
  1230.             // set the owning side to null (unless already changed)
  1231.             if ($scorings->getOwner() === $this) {
  1232.                 $scorings->setOwner(null);
  1233.             }
  1234.         }
  1235.         return $this;
  1236.     }
  1237.     /**
  1238.      * @return Collection|DiaporamaBlock[]
  1239.      */
  1240.     public function getDiaporamaBlocks(): Collection
  1241.     {
  1242.         return $this->diaporamaBlocks;
  1243.     }
  1244.     public function addDiaporamaBlock(DiaporamaBlock $diaporamaBlock): self
  1245.     {
  1246.         if (!$this->diaporamaBlocks->contains($diaporamaBlock)) {
  1247.             $this->diaporamaBlocks[] = $diaporamaBlock;
  1248.             $diaporamaBlock->setOwner($this);
  1249.         }
  1250.         return $this;
  1251.     }
  1252.     public function removeDiaporamaBlock(DiaporamaBlock $diaporamaBlock): self
  1253.     {
  1254.         if ($this->diaporamaBlocks->contains($diaporamaBlock)) {
  1255.             $this->diaporamaBlocks->removeElement($diaporamaBlock);
  1256.             // set the owning side to null (unless already changed)
  1257.             if ($diaporamaBlock->getOwner() === $this) {
  1258.                 $diaporamaBlock->setOwner(null);
  1259.             }
  1260.         }
  1261.         return $this;
  1262.     }
  1263.     /**
  1264.      * @return Collection|EditionLegende[]
  1265.      */
  1266.     public function getEditionLegendes(): Collection
  1267.     {
  1268.         return $this->editionLegendes;
  1269.     }
  1270.     public function addEditionLegende(EditionLegende $editionLegende): self
  1271.     {
  1272.         if (!$this->editionLegendes->contains($editionLegende)) {
  1273.             $this->editionLegendes[] = $editionLegende;
  1274.             $editionLegende->setOwner($this);
  1275.         }
  1276.         return $this;
  1277.     }
  1278.     public function removeEditionLegende(EditionLegende $editionLegende): self
  1279.     {
  1280.         if ($this->editionLegendes->contains($editionLegende)) {
  1281.             $this->editionLegendes->removeElement($editionLegende);
  1282.             // set the owning side to null (unless already changed)
  1283.             if ($editionLegende->getOwner() === $this) {
  1284.                 $editionLegende->setOwner(null);
  1285.             }
  1286.         }
  1287.         return $this;
  1288.     }
  1289.     /**
  1290.      * @return Collection|editionLegendeItem[]
  1291.      */
  1292.     public function getEditionLegendeItems(): Collection
  1293.     {
  1294.         return $this->editionLegendeItems;
  1295.     }
  1296.     public function addEditionLegendeItem(EditionLegendeItem $editionLegendeItem): self
  1297.     {
  1298.         if (!$this->editionLegendeItems->contains($editionLegendeItem)) {
  1299.             $this->editionLegendeItems[] = $editionLegendeItem;
  1300.             $editionLegendeItem->setEntity($this);
  1301.         }
  1302.         return $this;
  1303.     }
  1304.     public function removeEditionLegendeItem(EditionLegendeItem $editionLegendeItem): self
  1305.     {
  1306.         if ($this->editionLegendeItems->contains($editionLegendeItem)) {
  1307.             $this->editionLegendeItems->removeElement($editionLegendeItem);
  1308.             // set the owning side to null (unless already changed)
  1309.             if ($editionLegendeItem->getEntity() === $this) {
  1310.                 $editionLegendeItem->setEntity(null);
  1311.             }
  1312.         }
  1313.         return $this;
  1314.     }
  1315.     /**
  1316.      * @return Collection|Diaporama[]
  1317.      */
  1318.     public function getDiaporamas(): Collection
  1319.     {
  1320.         return $this->diaporamas;
  1321.     }
  1322.     public function addDiaporama(Diaporama $diaporama): self
  1323.     {
  1324.         if (!$this->diaporamas->contains($diaporama)) {
  1325.             $this->diaporamas[] = $diaporama;
  1326.             $diaporama->setOwner($this);
  1327.         }
  1328.         return $this;
  1329.     }
  1330.     public function removeDiaporama(Diaporama $diaporama): self
  1331.     {
  1332.         if ($this->diaporamas->contains($diaporama)) {
  1333.             $this->diaporamas->removeElement($diaporama);
  1334.             // set the owning side to null (unless already changed)
  1335.             if ($diaporama->getOwner() === $this) {
  1336.                 $diaporama->setOwner(null);
  1337.             }
  1338.         }
  1339.         return $this;
  1340.     }
  1341.     /**
  1342.      * @return Collection|EditionPlanification[]
  1343.      */
  1344.     public function getEditionPlanifications(): Collection
  1345.     {
  1346.         return $this->editionPlanifications;
  1347.     }
  1348.     public function addEditionPlanification(EditionPlanification $editionPlanification): self
  1349.     {
  1350.         if (!$this->editionPlanifications->contains($editionPlanification)) {
  1351.             $this->editionPlanifications[] = $editionPlanification;
  1352.             $editionPlanification->setOwner($this);
  1353.         }
  1354.         return $this;
  1355.     }
  1356.     public function removeEditionPlanification(EditionPlanification $editionPlanification): self
  1357.     {
  1358.         if ($this->editionPlanifications->contains($editionPlanification)) {
  1359.             $this->editionPlanifications->removeElement($editionPlanification);
  1360.             // set the owning side to null (unless already changed)
  1361.             if ($editionPlanification->getOwner() === $this) {
  1362.                 $editionPlanification->setOwner(null);
  1363.             }
  1364.         }
  1365.         return $this;
  1366.     }
  1367.     /**
  1368.      * @return Collection|WebMap[]
  1369.      */
  1370.     public function getWebMaps(): Collection
  1371.     {
  1372.         return $this->webMaps;
  1373.     }
  1374.     public function addWebMap(WebMap $webMap): self
  1375.     {
  1376.         if (!$this->webMaps->contains($webMap)) {
  1377.             $this->webMaps[] = $webMap;
  1378.             $webMap->setOwner($this);
  1379.         }
  1380.         return $this;
  1381.     }
  1382.     public function removeWebMap(WebMap $webMap): self
  1383.     {
  1384.         if ($this->webMaps->contains($webMap)) {
  1385.             $this->webMaps->removeElement($webMap);
  1386.             // set the owning side to null (unless already changed)
  1387.             if ($webMap->getOwner() === $this) {
  1388.                 $webMap->setOwner(null);
  1389.             }
  1390.         }
  1391.         return $this;
  1392.     }
  1393.     /**
  1394.      * @return Collection|DeeplTranslationConfig[]
  1395.      */
  1396.     public function getDeeplTranslationConfigs(): Collection
  1397.     {
  1398.         return $this->deeplTranslationConfigs;
  1399.     }
  1400.     public function addDeeplTranslationConfig(DeeplTranslationConfig $deeplTranslationConfig): self
  1401.     {
  1402.         if (!$this->deeplTranslationConfigs->contains($deeplTranslationConfig)) {
  1403.             $this->deeplTranslationConfigs[] = $deeplTranslationConfig;
  1404.             $deeplTranslationConfig->setOwner($this);
  1405.         }
  1406.         return $this;
  1407.     }
  1408.     public function removeDeeplTranslationConfig(DeeplTranslationConfig $deeplTranslationConfig): self
  1409.     {
  1410.         if ($this->deeplTranslationConfigs->contains($deeplTranslationConfig)) {
  1411.             $this->deeplTranslationConfigs->removeElement($deeplTranslationConfig);
  1412.             // set the owning side to null (unless already changed)
  1413.             if ($deeplTranslationConfig->getOwner() === $this) {
  1414.                 $deeplTranslationConfig->setOwner(null);
  1415.             }
  1416.         }
  1417.         return $this;
  1418.     }
  1419.     /**
  1420.      * @return Collection|DeeplTranslationParam[]
  1421.      */
  1422.     public function getDeeplTranslationParams(): Collection
  1423.     {
  1424.         return $this->deeplTranslationParams;
  1425.     }
  1426.     public function addDeeplTranslationParam(DeeplTranslationParam $deeplTranslationParam): self
  1427.     {
  1428.         if (!$this->deeplTranslationParams->contains($deeplTranslationParam)) {
  1429.             $this->deeplTranslationParams[] = $deeplTranslationParam;
  1430.             $deeplTranslationParam->setOwner($this);
  1431.         }
  1432.         return $this;
  1433.     }
  1434.     public function removeDeeplTranslationParam(DeeplTranslationParam $deeplTranslationParam): self
  1435.     {
  1436.         if ($this->deeplTranslationParams->contains($deeplTranslationParam)) {
  1437.             $this->deeplTranslationParams->removeElement($deeplTranslationParam);
  1438.             // set the owning side to null (unless already changed)
  1439.             if ($deeplTranslationParam->getOwner() === $this) {
  1440.                 $deeplTranslationParam->setOwner(null);
  1441.             }
  1442.         }
  1443.         return $this;
  1444.     }
  1445.     /**
  1446.      * @return Collection|ApidaeTranslationConfig[]
  1447.      */
  1448.     public function getApidaeTranslationConfigs(): Collection
  1449.     {
  1450.         return $this->apidaeTranslationConfigs;
  1451.     }
  1452.     public function addApidaeTranslationConfig(ApidaeTranslationConfig $apidaeTranslationConfig): self
  1453.     {
  1454.         if (!$this->apidaeTranslationConfigs->contains($apidaeTranslationConfig)) {
  1455.             $this->apidaeTranslationConfigs[] = $apidaeTranslationConfig;
  1456.             $apidaeTranslationConfig->setOwner($this);
  1457.         }
  1458.         return $this;
  1459.     }
  1460.     public function removeApidaeTranslationConfig(ApidaeTranslationConfig $apidaeTranslationConfig): self
  1461.     {
  1462.         if ($this->apidaeTranslationConfigs->contains($apidaeTranslationConfig)) {
  1463.             $this->apidaeTranslationConfigs->removeElement($apidaeTranslationConfig);
  1464.             // set the owning side to null (unless already changed)
  1465.             if ($apidaeTranslationConfig->getOwner() === $this) {
  1466.                 $apidaeTranslationConfig->setOwner(null);
  1467.             }
  1468.         }
  1469.         return $this;
  1470.     }
  1471.     /**
  1472.      * @return Collection|ApidaeWriteConfigurations[]
  1473.      */
  1474.     public function getApidaeWriteConfigurations(): Collection
  1475.     {
  1476.         return $this->apidaeWriteConfigurations;
  1477.     }
  1478.     public function addApidaeWriteConfiguration(ApidaeWriteConfiguration $apidaeWriteConfiguration): self
  1479.     {
  1480.         if (!$this->apidaeWriteConfigurations->contains($apidaeWriteConfiguration)) {
  1481.             $this->apidaeWriteConfigurations[] = $apidaeWriteConfiguration;
  1482.             $apidaeWriteConfiguration->setOwner($this);
  1483.         }
  1484.         return $this;
  1485.     }
  1486.     public function removeApidaeWriteConfiguration(ApidaeWriteConfiguration $apidaeWriteConfiguration): self
  1487.     {
  1488.         if ($this->apidaeWriteConfigurations->contains($apidaeWriteConfiguration)) {
  1489.             $this->apidaeWriteConfigurations->removeElement($apidaeWriteConfiguration);
  1490.             // set the owning side to null (unless already changed)
  1491.             if ($apidaeWriteConfiguration->getOwner() === $this) {
  1492.                 $apidaeWriteConfiguration->setOwner(null);
  1493.             }
  1494.         }
  1495.         return $this;
  1496.     }
  1497.     /**
  1498.      * @return Collection|BridgeUserParameter[]
  1499.      */
  1500.     public function getBridgeParameters(): Collection
  1501.     {
  1502.         return $this->bridgeParameters;
  1503.     }
  1504.     public function addBridgeParameter(BridgeUserParameter $parameter): self
  1505.     {
  1506.         if (!$this->bridgeParameters->contains($parameter)) {
  1507.             $this->bridgeParameters[] = $parameter;
  1508.             $parameter->setOwner($this);
  1509.         }
  1510.         return $this;
  1511.     }
  1512.     public function removeBridgeParameter(BridgeUserParameter $parameter): self
  1513.     {
  1514.         if ($this->bridgeParameters->contains($parameter)) {
  1515.             $this->bridgeParameters->removeElement($parameter);
  1516.             // set the owning side to null (unless already changed)
  1517.             if ($parameter->getOwner() === $this) {
  1518.                 $parameter->setOwner(null);
  1519.             }
  1520.         }
  1521.         return $this;
  1522.     }
  1523.     public function getParams(): ?array
  1524.     {
  1525.         return $this->params;
  1526.     }
  1527.     public function setParams(?array $params): self
  1528.     {
  1529.         $this->params $params;
  1530.         return $this;
  1531.     }
  1532.     /**
  1533.      * @return Collection|ResetPasswordRequest[]
  1534.      */
  1535.     public function getResetPasswordRequests(): Collection
  1536.     {
  1537.         return $this->resetPasswordRequests;
  1538.     }
  1539.     /**
  1540.      * @return Collection|ApiChangeHistory[]
  1541.      */
  1542.     public function getApiChanges(): Collection
  1543.     {
  1544.         return $this->apiChanges;
  1545.     }
  1546.     public function addApiChange(ApiChangeHistory $apiChangeHistory): self
  1547.     {
  1548.         if (!$this->apiChanges->contains($apiChangeHistory)) {
  1549.             $this->apiChanges[] = $apiChangeHistory;
  1550.             $apiChangeHistory->setUser($this);
  1551.         }
  1552.         return $this;
  1553.     }
  1554.     public function removeApiChange(ApiChangeHistory $apiChangeHistory): self
  1555.     {
  1556.         if ($this->apiChanges->contains($apiChangeHistory)) {
  1557.             $this->apiChanges->removeElement($apiChangeHistory);
  1558.             // set the owning side to null (unless already changed)
  1559.             if ($apiChangeHistory->getUser() === $this) {
  1560.                 $apiChangeHistory->setUser(null);
  1561.             }
  1562.         }
  1563.         return $this;
  1564.     }
  1565.     /**
  1566.      * @return Collection|GuideAccueilDestinataire[]
  1567.      */
  1568.     public function getGuideAccueilDestinataires(): Collection
  1569.     {
  1570.         return $this->guideAccueilDestinataires;
  1571.     }
  1572.     public function addGuideAccueilDestinataire(GuideAccueilDestinataire $guideAccueilDestinataire): self
  1573.     {
  1574.         if (!$this->guideAccueilDestinataires->contains($guideAccueilDestinataire)) {
  1575.             $this->guideAccueilDestinataires[] = $guideAccueilDestinataire;
  1576.             $guideAccueilDestinataire->setUser($this);
  1577.         }
  1578.         return $this;
  1579.     }
  1580.     public function removeGuideAccueilDestinataire(GuideAccueilDestinataire $guideAccueilDestinataire): self
  1581.     {
  1582.         if ($this->guideAccueilDestinataires->contains($guideAccueilDestinataire)) {
  1583.             $this->guideAccueilDestinataires->removeElement($guideAccueilDestinataire);
  1584.             // set the owning side to null (unless already changed)
  1585.             if ($guideAccueilDestinataire->getUser() === $this) {
  1586.                 $guideAccueilDestinataire->setUser(null);
  1587.             }
  1588.         }
  1589.         return $this;
  1590.     }
  1591.     public function addResetPasswordRequest(ResetPasswordRequest $resetPasswordRequest): self
  1592.     {
  1593.         if (!$this->resetPasswordRequests->contains($resetPasswordRequest)) {
  1594.             $this->resetPasswordRequests[] = $resetPasswordRequest;
  1595.             $resetPasswordRequest->setUser($this);
  1596.         }
  1597.         return $this;
  1598.     }
  1599.     public function removeResetPasswordRequest(ResetPasswordRequest $resetPasswordRequest): self
  1600.     {
  1601.         if ($this->resetPasswordRequests->contains($resetPasswordRequest)) {
  1602.             $this->resetPasswordRequests->removeElement($resetPasswordRequest);
  1603.             // Set the owning side to null (unless already changed)
  1604.             if ($resetPasswordRequest->getUser() === $this) {
  1605.                 $resetPasswordRequest->setUser(null);
  1606.             }
  1607.         }
  1608.         return $this;
  1609.     }
  1610. }