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.      * User constructor.
  312.      * @param $username
  313.      */
  314.     public function __construct(string $username='')
  315.     {
  316.         $this->isActive true;
  317.         $this->username $username;
  318.         $this->blocks = new ArrayCollection();
  319.         $this->blockFields = new ArrayCollection();
  320.         $this->blockFieldItems = new ArrayCollection();
  321.         $this->selections = new ArrayCollection();
  322.         $this->selectionItems = new ArrayCollection();
  323.         $this->editionsPlanners = new ArrayCollection();
  324.         $this->webEngines = new ArrayCollection();
  325.         $this->webEngineSections = new ArrayCollection();
  326.         $this->webEngineSubSections = new ArrayCollection();
  327.         $this->webSubSectionFilters = new ArrayCollection();
  328.         $this->webFilters = new ArrayCollection();
  329.         $this->webFilterItems = new ArrayCollection();
  330.         $this->webLists = new ArrayCollection();
  331.         $this->listModels = new ArrayCollection();
  332.         $this->webListBlocks = new ArrayCollection();
  333.         $this->webPages = new ArrayCollection();
  334.         $this->webPageBlocks = new ArrayCollection();
  335.         $this->medias = new ArrayCollection();
  336.         $this->editionModeles = new ArrayCollection();
  337.         $this->editionModeleRubriqueDynamiques = new ArrayCollection();
  338.         $this->tags = new ArrayCollection();
  339.         $this->annonces = new ArrayCollection();
  340.         $this->tagAnnonces = new ArrayCollection();
  341.         $this->mediaTags = new ArrayCollection();
  342.         $this->scoringProfiles = new ArrayCollection();
  343.         $this->scorings = new ArrayCollection();
  344.         $this->editionLegendes = new ArrayCollection();
  345.         $this->editionLegendeItems = new ArrayCollection();
  346.         $this->diaporamaBlocks = new ArrayCollection();
  347.         $this->diaporamas = new ArrayCollection();
  348.         $this->editionPlanifications = new ArrayCollection();
  349.         $this->webMaps = new ArrayCollection();
  350.         $this->sites = new ArrayCollection();
  351.         $this->deeplTranslationParams = new ArrayCollection();
  352.         $this->deeplTranslationConfigs = new ArrayCollection();
  353.         $this->apidaeTranslationConfigs = new ArrayCollection();
  354.         $this->apidaeWriteConfigurations = new ArrayCollection();
  355.         $this->bridgeParameters = new ArrayCollection();
  356.         $this->resetPasswordRequests = new ArrayCollection();
  357.         $this->params = ['doNotShowAgain' => false];
  358.     }
  359.     /**
  360.      * @return int
  361.      */
  362.     public function getId(): int
  363.     {
  364.         return $this->id;
  365.     }
  366.     /**
  367.      * @return string
  368.      */
  369.     public function getUsername()
  370.     {
  371.         return $this->username;
  372.     }
  373.     /**
  374.      * @return mixed
  375.      */
  376.     public function getEmail()
  377.     {
  378.         return $this->email;
  379.     }
  380.     /**
  381.      * @param mixed $email
  382.      */
  383.     public function setEmail($email): void
  384.     {
  385.         $this->email $email;
  386.     }
  387.     /**
  388.      * @return string|null
  389.      */
  390.     public function getSalt()
  391.     {
  392.         return null;
  393.     }
  394.     /**
  395.      * @return string
  396.      */
  397.     public function getPassword()
  398.     {
  399.         return $this->password;
  400.     }
  401.     /**
  402.      * @param $password
  403.      */
  404.     public function setPassword($password)
  405.     {
  406.         $this->password $password;
  407.     }
  408.     public function eraseCredentials()
  409.     {
  410.     }
  411.     /**
  412.      * @return mixed
  413.      */
  414.     public function getRoles()
  415.     {
  416.         return $this->roles;
  417.     }
  418.     /**
  419.      * @param mixed $roles
  420.      */
  421.     public function setRoles($roles): void
  422.     {
  423.         $this->roles $roles;
  424.     }
  425.     /**
  426.      * @return mixed
  427.      */
  428.     public function getFirstname()
  429.     {
  430.         return $this->firstname;
  431.     }
  432.     /**
  433.      * @param mixed $firstname
  434.      */
  435.     public function setFirstname($firstname): void
  436.     {
  437.         $this->firstname $firstname;
  438.     }
  439.     /**
  440.      * @return mixed
  441.      */
  442.     public function getLastname()
  443.     {
  444.         return $this->lastname;
  445.     }
  446.     /**
  447.      * @param mixed $lastname
  448.      */
  449.     public function setLastname($lastname): void
  450.     {
  451.         $this->lastname $lastname;
  452.     }
  453.     public function setUsername(string $username): self
  454.     {
  455.         $this->username $username;
  456.         return $this;
  457.     }
  458.     public function getIsActive(): ?bool
  459.     {
  460.         return $this->isActive;
  461.     }
  462.     public function setIsActive(bool $isActive): self
  463.     {
  464.         $this->isActive $isActive;
  465.         return $this;
  466.     }
  467.     public function getLeiUserId(): ?string
  468.     {
  469.         return $this->leiUserId;
  470.     }
  471.     public function setLeiUserId(?string $leiUserId): self
  472.     {
  473.         $this->leiUserId $leiUserId;
  474.         return $this;
  475.     }
  476.     public function getLeiPwKey(): ?string
  477.     {
  478.         return $this->leiPwKey;
  479.     }
  480.     public function setLeiPwKey(?string $leiPwKey): self
  481.     {
  482.         $this->leiPwKey $leiPwKey;
  483.         return $this;
  484.     }
  485.     public function getTourinsoftUserId(): ?string
  486.     {
  487.         return $this->tourinsoftUserId;
  488.     }
  489.     public function setTourinsoftUserId(?string $tourinsoftUserId): self
  490.     {
  491.         $this->tourinsoftUserId $tourinsoftUserId;
  492.         return $this;
  493.     }
  494.     public function getApidaeUserId(): ?string
  495.     {
  496.         return $this->apidaeUserId;
  497.     }
  498.     public function setApidaeUserId(?string $apidaeUserId): self
  499.     {
  500.         $this->apidaeUserId $apidaeUserId;
  501.         return $this;
  502.     }
  503.     public function getTourinsoftToken(): ?string
  504.     {
  505.         return $this->tourinsoftToken;
  506.     }
  507.     public function setTourinsoftToken(?string $tourinsoftToken): self
  508.     {
  509.         $this->tourinsoftToken $tourinsoftToken;
  510.         return $this;
  511.     }
  512.     public function getEntity(): ?DnsitEntity
  513.     {
  514.         return $this->entity;
  515.     }
  516.     public function setEntity(?DnsitEntity $entity): self
  517.     {
  518.         $this->entity $entity;
  519.         return $this;
  520.     }
  521.     /**
  522.      * @return Collection|Annonce[]
  523.      */
  524.     public function getAnnonces(): Collection
  525.     {
  526.         return $this->annonces;
  527.     }
  528.     public function addAnnonce(Annonce $annonce): self
  529.     {
  530.         if (!$this->annonces->contains($annonce)) {
  531.             $this->annonces[] = $annonce;
  532.             $annonce->setEntity($this);
  533.         }
  534.         return $this;
  535.     }
  536.     public function removeAnnonces(Annonce $annonce): self
  537.     {
  538.         if ($this->annonces->contains($annonce)) {
  539.             $this->annonces->removeElement($annonce);
  540.             // set the owning side to null (unless already changed)
  541.             if ($annonce->getEntity() === $this) {
  542.                 $annonce->setEntity(null);
  543.             }
  544.         }
  545.         return $this;
  546.     }
  547.     /**
  548.      * @return Collection|TagAnnonce[]
  549.      */
  550.     public function getTagAnnonces(): Collection
  551.     {
  552.         return $this->tagAnnonces;
  553.     }
  554.     public function addTagAnnonce(TagAnnonce $tagAnnonce): self
  555.     {
  556.         if (!$this->tagAnnonces->contains($tagAnnonce)) {
  557.             $this->tagAnnonces[] = $tagAnnonce;
  558.             $tagAnnonce->setEntity($this);
  559.         }
  560.         return $this;
  561.     }
  562.     public function removeTagAnnonces(TagAnnonce $tagAnnonce): self
  563.     {
  564.         if ($this->tagAnnonces->contains($tagAnnonce)) {
  565.             $this->tagAnnonces->removeElement($tagAnnonce);
  566.             // set the owning side to null (unless already changed)
  567.             if ($tagAnnonce->getEntity() === $this) {
  568.                 $tagAnnonce->setEntity(null);
  569.             }
  570.         }
  571.         return $this;
  572.     }
  573.     /**
  574.      * @return Collection|Site[]
  575.      */
  576.     public function getSites(): Collection
  577.     {
  578.         return $this->sites;
  579.     }
  580.     public function addSite(Site $site): self
  581.     {
  582.         if (!$this->sites->contains($site)) {
  583.             $this->sites[] = $site;
  584.             $site->setOwner($this);
  585.         }
  586.         return $this;
  587.     }
  588.     public function removeSite(Site $site): self
  589.     {
  590.         if ($this->sites->contains($site)) {
  591.             $this->sites->removeElement($site);
  592.             // set the owning side to null (unless already changed)
  593.             if ($site->getOwner() === $this) {
  594.                 $site->setOwner(null);
  595.             }
  596.         }
  597.         return $this;
  598.     }
  599.     /**
  600.      * @return Collection|Block[]
  601.      */
  602.     public function getBlocks(): Collection
  603.     {
  604.         return $this->blocks;
  605.     }
  606.     public function addBlock(Block $block): self
  607.     {
  608.         if (!$this->blocks->contains($block)) {
  609.             $this->blocks[] = $block;
  610.             $block->setOwner($this);
  611.         }
  612.         return $this;
  613.     }
  614.     public function removeBlock(Block $block): self
  615.     {
  616.         if ($this->blocks->contains($block)) {
  617.             $this->blocks->removeElement($block);
  618.             // set the owning side to null (unless already changed)
  619.             if ($block->getOwner() === $this) {
  620.                 $block->setOwner(null);
  621.             }
  622.         }
  623.         return $this;
  624.     }
  625.     /**
  626.      * @return Collection|BlockField[]
  627.      */
  628.     public function getBlockFields(): Collection
  629.     {
  630.         return $this->blockFields;
  631.     }
  632.     public function addBlockField(BlockField $blockField): self
  633.     {
  634.         if (!$this->blockFields->contains($blockField)) {
  635.             $this->blockFields[] = $blockField;
  636.             $blockField->setOwner($this);
  637.         }
  638.         return $this;
  639.     }
  640.     public function removeBlockField(BlockField $blockField): self
  641.     {
  642.         if ($this->blockFields->contains($blockField)) {
  643.             $this->blockFields->removeElement($blockField);
  644.             // set the owning side to null (unless already changed)
  645.             if ($blockField->getOwner() === $this) {
  646.                 $blockField->setOwner(null);
  647.             }
  648.         }
  649.         return $this;
  650.     }
  651.     /**
  652.      * @return Collection|BlockFieldItem[]
  653.      */
  654.     public function getBlockFieldItems(): Collection
  655.     {
  656.         return $this->blockFieldItems;
  657.     }
  658.     public function addBlockFieldItem(BlockFieldItem $blockFieldItem): self
  659.     {
  660.         if (!$this->blockFieldItems->contains($blockFieldItem)) {
  661.             $this->blockFieldItems[] = $blockFieldItem;
  662.             $blockFieldItem->setOwner($this);
  663.         }
  664.         return $this;
  665.     }
  666.     public function removeBlockFieldItem(BlockFieldItem $blockFieldItem): self
  667.     {
  668.         if ($this->blockFieldItems->contains($blockFieldItem)) {
  669.             $this->blockFieldItems->removeElement($blockFieldItem);
  670.             // set the owning side to null (unless already changed)
  671.             if ($blockFieldItem->getOwner() === $this) {
  672.                 $blockFieldItem->setOwner(null);
  673.             }
  674.         }
  675.         return $this;
  676.     }
  677.     /**
  678.      * @return Collection|Selection[]
  679.      */
  680.     public function getSelections(): Collection
  681.     {
  682.         return $this->selections;
  683.     }
  684.     public function addSelection(Selection $selection): self
  685.     {
  686.         if (!$this->selections->contains($selection)) {
  687.             $this->selections[] = $selection;
  688.             $selection->setOwner($this);
  689.         }
  690.         return $this;
  691.     }
  692.     public function removeSelection(Selection $selection): self
  693.     {
  694.         if ($this->selections->contains($selection)) {
  695.             $this->selections->removeElement($selection);
  696.             // set the owning side to null (unless already changed)
  697.             if ($selection->getOwner() === $this) {
  698.                 $selection->setOwner(null);
  699.             }
  700.         }
  701.         return $this;
  702.     }
  703.     /**
  704.      * @return Collection|SelectionItem[]
  705.      */
  706.     public function getSelectionItems(): Collection
  707.     {
  708.         return $this->selectionItems;
  709.     }
  710.     public function addSelectionItem(SelectionItem $selectionItem): self
  711.     {
  712.         if (!$this->selectionItems->contains($selectionItem)) {
  713.             $this->selectionItems[] = $selectionItem;
  714.             $selectionItem->setOwner($this);
  715.         }
  716.         return $this;
  717.     }
  718.     public function removeSelectionItem(SelectionItem $selectionItem): self
  719.     {
  720.         if ($this->selectionItems->contains($selectionItem)) {
  721.             $this->selectionItems->removeElement($selectionItem);
  722.             // set the owning side to null (unless already changed)
  723.             if ($selectionItem->getOwner() === $this) {
  724.                 $selectionItem->setOwner(null);
  725.             }
  726.         }
  727.         return $this;
  728.     }
  729.     /**
  730.      * @return Collection|EditionsPlanner[]
  731.      */
  732.     public function getEditionsPlanners(): Collection
  733.     {
  734.         return $this->editionsPlanners;
  735.     }
  736.     public function addEditionsPlanner(EditionsPlanner $editionsPlanner): self
  737.     {
  738.         if (!$this->editionsPlanners->contains($editionsPlanner)) {
  739.             $this->editionsPlanners[] = $editionsPlanner;
  740.             $editionsPlanner->setOwner($this);
  741.         }
  742.         return $this;
  743.     }
  744.     public function removeEditionsPlanner(EditionsPlanner $editionsPlanner): self
  745.     {
  746.         if ($this->editionsPlanners->contains($editionsPlanner)) {
  747.             $this->editionsPlanners->removeElement($editionsPlanner);
  748.             // set the owning side to null (unless already changed)
  749.             if ($editionsPlanner->getOwner() === $this) {
  750.                 $editionsPlanner->setOwner(null);
  751.             }
  752.         }
  753.         return $this;
  754.     }
  755.     /**
  756.      * @return Collection|WebEngine[]
  757.      */
  758.     public function getWebEngines(): Collection
  759.     {
  760.         return $this->webEngines;
  761.     }
  762.     public function addWebEngine(WebEngine $webEngine): self
  763.     {
  764.         if (!$this->webEngines->contains($webEngine)) {
  765.             $this->webEngines[] = $webEngine;
  766.             $webEngine->setOwner($this);
  767.         }
  768.         return $this;
  769.     }
  770.     public function removeWebEngine(WebEngine $webEngine): self
  771.     {
  772.         if ($this->webEngines->contains($webEngine)) {
  773.             $this->webEngines->removeElement($webEngine);
  774.             // set the owning side to null (unless already changed)
  775.             if ($webEngine->getOwner() === $this) {
  776.                 $webEngine->setOwner(null);
  777.             }
  778.         }
  779.         return $this;
  780.     }
  781.     /**
  782.      * @return Collection|WebEngineSection[]
  783.      */
  784.     public function getWebEngineSections(): Collection
  785.     {
  786.         return $this->webEngineSections;
  787.     }
  788.     public function addWebEngineSection(WebEngineSection $webEngineSection): self
  789.     {
  790.         if (!$this->webEngineSections->contains($webEngineSection)) {
  791.             $this->webEngineSections[] = $webEngineSection;
  792.             $webEngineSection->setOwner($this);
  793.         }
  794.         return $this;
  795.     }
  796.     public function removeWebEngineSection(WebEngineSection $webEngineSection): self
  797.     {
  798.         if ($this->webEngineSections->contains($webEngineSection)) {
  799.             $this->webEngineSections->removeElement($webEngineSection);
  800.             // set the owning side to null (unless already changed)
  801.             if ($webEngineSection->getOwner() === $this) {
  802.                 $webEngineSection->setOwner(null);
  803.             }
  804.         }
  805.         return $this;
  806.     }
  807.     /**
  808.      * @return Collection|WebEngineSubSection[]
  809.      */
  810.     public function getWebEngineSubSections(): Collection
  811.     {
  812.         return $this->webEngineSubSections;
  813.     }
  814.     public function addWebEngineSubSection(WebEngineSubSection $webEngineSubSection): self
  815.     {
  816.         if (!$this->webEngineSubSections->contains($webEngineSubSection)) {
  817.             $this->webEngineSubSections[] = $webEngineSubSection;
  818.             $webEngineSubSection->setOwner($this);
  819.         }
  820.         return $this;
  821.     }
  822.     public function removeWebEngineSubSection(WebEngineSubSection $webEngineSubSection): self
  823.     {
  824.         if ($this->webEngineSubSections->contains($webEngineSubSection)) {
  825.             $this->webEngineSubSections->removeElement($webEngineSubSection);
  826.             // set the owning side to null (unless already changed)
  827.             if ($webEngineSubSection->getOwner() === $this) {
  828.                 $webEngineSubSection->setOwner(null);
  829.             }
  830.         }
  831.         return $this;
  832.     }
  833.     /**
  834.      * @return Collection|WebSubSectionFilter[]
  835.      */
  836.     public function getWebSubSectionFilters(): Collection
  837.     {
  838.         return $this->webSubSectionFilters;
  839.     }
  840.     public function addWebSubSectionFilter(WebSubSectionFilter $webSubSectionFilter): self
  841.     {
  842.         if (!$this->webSubSectionFilters->contains($webSubSectionFilter)) {
  843.             $this->webSubSectionFilters[] = $webSubSectionFilter;
  844.             $webSubSectionFilter->setOwner($this);
  845.         }
  846.         return $this;
  847.     }
  848.     public function removeWebSubSectionFilter(WebSubSectionFilter $webSubSectionFilter): self
  849.     {
  850.         if ($this->webSubSectionFilters->contains($webSubSectionFilter)) {
  851.             $this->webSubSectionFilters->removeElement($webSubSectionFilter);
  852.             // set the owning side to null (unless already changed)
  853.             if ($webSubSectionFilter->getOwner() === $this) {
  854.                 $webSubSectionFilter->setOwner(null);
  855.             }
  856.         }
  857.         return $this;
  858.     }
  859.     /**
  860.      * @return Collection|WebFilter[]
  861.      */
  862.     public function getWebFilters(): Collection
  863.     {
  864.         return $this->webFilters;
  865.     }
  866.     public function addWebFilter(WebFilter $webFilter): self
  867.     {
  868.         if (!$this->webFilters->contains($webFilter)) {
  869.             $this->webFilters[] = $webFilter;
  870.             $webFilter->setOwner($this);
  871.         }
  872.         return $this;
  873.     }
  874.     public function removeWebFilter(WebFilter $webFilter): self
  875.     {
  876.         if ($this->webFilters->contains($webFilter)) {
  877.             $this->webFilters->removeElement($webFilter);
  878.             // set the owning side to null (unless already changed)
  879.             if ($webFilter->getOwner() === $this) {
  880.                 $webFilter->setOwner(null);
  881.             }
  882.         }
  883.         return $this;
  884.     }
  885.     /**
  886.      * @return Collection|WebFilterItem[]
  887.      */
  888.     public function getWebFilterItems(): Collection
  889.     {
  890.         return $this->webFilterItems;
  891.     }
  892.     public function addWebFilterItem(WebFilterItem $webFilterItem): self
  893.     {
  894.         if (!$this->webFilterItems->contains($webFilterItem)) {
  895.             $this->webFilterItems[] = $webFilterItem;
  896.             $webFilterItem->setOwner($this);
  897.         }
  898.         return $this;
  899.     }
  900.     public function removeWebFilterItem(WebFilterItem $webFilterItem): self
  901.     {
  902.         if ($this->webFilterItems->contains($webFilterItem)) {
  903.             $this->webFilterItems->removeElement($webFilterItem);
  904.             // set the owning side to null (unless already changed)
  905.             if ($webFilterItem->getOwner() === $this) {
  906.                 $webFilterItem->setOwner(null);
  907.             }
  908.         }
  909.         return $this;
  910.     }
  911.     /**
  912.      * @return Collection|WebList[]
  913.      */
  914.     public function getWebLists(): Collection
  915.     {
  916.         return $this->webLists;
  917.     }
  918.     public function addWebList(WebList $webList): self
  919.     {
  920.         if (!$this->webLists->contains($webList)) {
  921.             $this->webLists[] = $webList;
  922.             $webList->setOwner($this);
  923.         }
  924.         return $this;
  925.     }
  926.     public function removeWebList(WebList $webList): self
  927.     {
  928.         if ($this->webLists->contains($webList)) {
  929.             $this->webLists->removeElement($webList);
  930.             // set the owning side to null (unless already changed)
  931.             if ($webList->getOwner() === $this) {
  932.                 $webList->setOwner(null);
  933.             }
  934.         }
  935.         return $this;
  936.     }
  937.     /**
  938.      * @return Collection|ListModel[]
  939.      */
  940.     public function getListModels(): Collection
  941.     {
  942.         return $this->listModels;
  943.     }
  944.     public function addListModel(ListModel $listModel): self
  945.     {
  946.         if (!$this->listModels->contains($listModel)) {
  947.             $this->listModels[] = $listModel;
  948.             $listModel->setOwner($this);
  949.         }
  950.         return $this;
  951.     }
  952.     public function removeListModel(ListModel $listModel): self
  953.     {
  954.         if ($this->listModels->contains($listModel)) {
  955.             $this->listModels->removeElement($listModel);
  956.             // set the owning side to null (unless already changed)
  957.             if ($listModel->getOwner() === $this) {
  958.                 $listModel->setOwner(null);
  959.             }
  960.         }
  961.         return $this;
  962.     }
  963.     /**
  964.      * @return Collection|WebListBlock[]
  965.      */
  966.     public function getWebListBlocks(): Collection
  967.     {
  968.         return $this->webListBlocks;
  969.     }
  970.     public function addWebListBlock(WebListBlock $webListBlock): self
  971.     {
  972.         if (!$this->webListBlocks->contains($webListBlock)) {
  973.             $this->webListBlocks[] = $webListBlock;
  974.             $webListBlock->setOwner($this);
  975.         }
  976.         return $this;
  977.     }
  978.     public function removeWebListBlock(WebListBlock $webListBlock): self
  979.     {
  980.         if ($this->webListBlocks->contains($webListBlock)) {
  981.             $this->webListBlocks->removeElement($webListBlock);
  982.             // set the owning side to null (unless already changed)
  983.             if ($webListBlock->getOwner() === $this) {
  984.                 $webListBlock->setOwner(null);
  985.             }
  986.         }
  987.         return $this;
  988.     }
  989.     /**
  990.      * @return Collection|WebPage[]
  991.      */
  992.     public function getWebPages(): Collection
  993.     {
  994.         return $this->webPages;
  995.     }
  996.     public function addWebPage(WebPage $webPage): self
  997.     {
  998.         if (!$this->webPages->contains($webPage)) {
  999.             $this->webPages[] = $webPage;
  1000.             $webPage->setOwner($this);
  1001.         }
  1002.         return $this;
  1003.     }
  1004.     public function removeWebPage(WebPage $webPage): self
  1005.     {
  1006.         if ($this->webPages->contains($webPage)) {
  1007.             $this->webPages->removeElement($webPage);
  1008.             // set the owning side to null (unless already changed)
  1009.             if ($webPage->getOwner() === $this) {
  1010.                 $webPage->setOwner(null);
  1011.             }
  1012.         }
  1013.         return $this;
  1014.     }
  1015.     /**
  1016.      * @return Collection|WebPageBlock[]
  1017.      */
  1018.     public function getWebPageBlocks(): Collection
  1019.     {
  1020.         return $this->webPageBlocks;
  1021.     }
  1022.     public function addWebPageBlock(WebPageBlock $webPageBlock): self
  1023.     {
  1024.         if (!$this->webPageBlocks->contains($webPageBlock)) {
  1025.             $this->webPageBlocks[] = $webPageBlock;
  1026.             $webPageBlock->setOwner($this);
  1027.         }
  1028.         return $this;
  1029.     }
  1030.     public function removeWebPageBlock(WebPageBlock $webPageBlock): self
  1031.     {
  1032.         if ($this->webPageBlocks->contains($webPageBlock)) {
  1033.             $this->webPageBlocks->removeElement($webPageBlock);
  1034.             // set the owning side to null (unless already changed)
  1035.             if ($webPageBlock->getOwner() === $this) {
  1036.                 $webPageBlock->setOwner(null);
  1037.             }
  1038.         }
  1039.         return $this;
  1040.     }
  1041.     /**
  1042.      * @return Collection|Media[]
  1043.      */
  1044.     public function getMedias(): Collection
  1045.     {
  1046.         return $this->webFilters;
  1047.     }
  1048.     public function addMedia(Media $media): self
  1049.     {
  1050.         if (!$this->medias->contains($media)) {
  1051.             $this->medias[] = $media;
  1052.             $media->setOwner($this);
  1053.         }
  1054.         return $this;
  1055.     }
  1056.     public function removeMedia(Media $media): self
  1057.     {
  1058.         if ($this->medias->contains($media)) {
  1059.             $this->medias->removeElement($media);
  1060.             // set the owning side to null (unless already changed)
  1061.             if ($media->getOwner() === $this) {
  1062.                 $media->setOwner(null);
  1063.             }
  1064.         }
  1065.         return $this;
  1066.     }
  1067.     /**
  1068.      * @return Collection|EditionModele[]
  1069.      */
  1070.     public function getEditionModeles(): Collection
  1071.     {
  1072.         return $this->editionModeles;
  1073.     }
  1074.     public function addEditionModele(EditionModele $editionModele): self
  1075.     {
  1076.         if (!$this->editionModeles->contains($editionModele)) {
  1077.             $this->editionModeles[] = $editionModele;
  1078.             $editionModele->setOwner($this);
  1079.         }
  1080.         return $this;
  1081.     }
  1082.     public function removeEditionModele(EditionModele $editionModele): self
  1083.     {
  1084.         if ($this->editionModeles->contains($editionModele)) {
  1085.             $this->editionModeles->removeElement($editionModele);
  1086.             // set the owning side to null (unless already changed)
  1087.             if ($editionModele->getOwner() === $this) {
  1088.                 $editionModele->setOwner(null);
  1089.             }
  1090.         }
  1091.         return $this;
  1092.     }
  1093.     /**
  1094.      * @return Collection|EditionModeleRubriqueDynamiqueModele[]
  1095.      */
  1096.     public function getEditionModeleRubriqueDynamiques(): Collection
  1097.     {
  1098.         return $this->editionModeleRubriqueDynamiques;
  1099.     }
  1100.     public function addEditionModeleRubriqueDynamique(EditionModeleRubriqueDynamiqueModele $editionModeleRubriqueDynamique): self
  1101.     {
  1102.         if (!$this->editionModeleRubriqueDynamiques->contains($editionModeleRubriqueDynamique)) {
  1103.             $this->editionModeleRubriqueDynamiques[] = $editionModeleRubriqueDynamique;
  1104.             $editionModeleRubriqueDynamique->setOwner($this);
  1105.         }
  1106.         return $this;
  1107.     }
  1108.     public function removeEditionModeleRubriqueDynamique(EditionModeleRubriqueDynamiqueModele $editionModeleRubriqueDynamique): self
  1109.     {
  1110.         if ($this->editionModeleRubriqueDynamiques->contains($editionModeleRubriqueDynamique)) {
  1111.             $this->editionModeleRubriqueDynamiques->removeElement($editionModeleRubriqueDynamique);
  1112.             // set the owning side to null (unless already changed)
  1113.             if ($editionModeleRubriqueDynamique->getOwner() === $this) {
  1114.                 $editionModeleRubriqueDynamique->setOwner(null);
  1115.             }
  1116.         }
  1117.         return $this;
  1118.     }
  1119.     /**
  1120.      * @return Collection|Tag[]
  1121.      */
  1122.     public function getTags(): Collection
  1123.     {
  1124.         return $this->tags;
  1125.     }
  1126.     public function addTag(Tag $tag): self
  1127.     {
  1128.         if (!$this->tags->contains($tag)) {
  1129.             $this->tags[] = $tag;
  1130.             $tag->setOwner($this);
  1131.         }
  1132.         return $this;
  1133.     }
  1134.     public function removeTag(Tag $tag): self
  1135.     {
  1136.         if ($this->tags->contains($tag)) {
  1137.             $this->tags->removeElement($tag);
  1138.             // set the owning side to null (unless already changed)
  1139.             if ($tag->getOwner() === $this) {
  1140.                 $tag->setOwner(null);
  1141.             }
  1142.         }
  1143.         return $this;
  1144.     }
  1145.     /**
  1146.      * @return Collection|TagMedia[]
  1147.      */
  1148.     public function getMediaTags(): Collection
  1149.     {
  1150.         return $this->mediaTags;
  1151.     }
  1152.     public function addMediaTag(TagMedia $tagMedia): self
  1153.     {
  1154.         if (!$this->mediaTags->contains($tagMedia)) {
  1155.             $this->mediaTags[] = $tagMedia;
  1156.             $tagMedia->setOwner($this);
  1157.         }
  1158.         return $this;
  1159.     }
  1160.     public function removeMediaTag(TagMedia $tagMedia): self
  1161.     {
  1162.         if ($this->mediaTags->contains($tagMedia)) {
  1163.             $this->mediaTags->removeElement($tagMedia);
  1164.             // set the owning side to null (unless already changed)
  1165.             if ($tagMedia->getOwner() === $this) {
  1166.                 $tagMedia->setOwner(null);
  1167.             }
  1168.         }
  1169.         return $this;
  1170.     }
  1171.     /**
  1172.      * @return Collection|DnsitScoringProfile[]
  1173.      */
  1174.     public function getScoringProfiles(): Collection
  1175.     {
  1176.         return $this->scoringProfiles;
  1177.     }
  1178.     public function addScoringProfile(DnsitScoringProfile $scoringProfile): self
  1179.     {
  1180.         if (!$this->scoringProfiles->contains($scoringProfile)) {
  1181.             $this->scoringProfiles[] = $scoringProfile;
  1182.             $scoringProfile->setOwner($this);
  1183.         }
  1184.         return $this;
  1185.     }
  1186.     public function removeScoringProfile(DnsitScoringProfile $scoringProfile): self
  1187.     {
  1188.         if ($this->scoringProfiles->contains($scoringProfile)) {
  1189.             $this->scoringProfiles->removeElement($scoringProfile);
  1190.             // set the owning side to null (unless already changed)
  1191.             if ($scoringProfile->getOwner() === $this) {
  1192.                 $scoringProfile->setOwner(null);
  1193.             }
  1194.         }
  1195.         return $this;
  1196.     }
  1197.     /**
  1198.      * @return Collection|DnsitScoring[]
  1199.      */
  1200.     public function getScorings(): Collection
  1201.     {
  1202.         return $this->scorings;
  1203.     }
  1204.     public function addScoring(DnsitScoring $scorings): self
  1205.     {
  1206.         if (!$this->scorings->contains($scorings)) {
  1207.             $this->scorings[] = $scorings;
  1208.             $scorings->setOwner($this);
  1209.         }
  1210.         return $this;
  1211.     }
  1212.     public function removeScoring(DnsitScoring $scorings): self
  1213.     {
  1214.         if ($this->scorings->contains($scorings)) {
  1215.             $this->scorings->removeElement($scorings);
  1216.             // set the owning side to null (unless already changed)
  1217.             if ($scorings->getOwner() === $this) {
  1218.                 $scorings->setOwner(null);
  1219.             }
  1220.         }
  1221.         return $this;
  1222.     }
  1223.     /**
  1224.      * @return Collection|DiaporamaBlock[]
  1225.      */
  1226.     public function getDiaporamaBlocks(): Collection
  1227.     {
  1228.         return $this->diaporamaBlocks;
  1229.     }
  1230.     public function addDiaporamaBlock(DiaporamaBlock $diaporamaBlock): self
  1231.     {
  1232.         if (!$this->diaporamaBlocks->contains($diaporamaBlock)) {
  1233.             $this->diaporamaBlocks[] = $diaporamaBlock;
  1234.             $diaporamaBlock->setOwner($this);
  1235.         }
  1236.         return $this;
  1237.     }
  1238.     public function removeDiaporamaBlock(DiaporamaBlock $diaporamaBlock): self
  1239.     {
  1240.         if ($this->diaporamaBlocks->contains($diaporamaBlock)) {
  1241.             $this->diaporamaBlocks->removeElement($diaporamaBlock);
  1242.             // set the owning side to null (unless already changed)
  1243.             if ($diaporamaBlock->getOwner() === $this) {
  1244.                 $diaporamaBlock->setOwner(null);
  1245.             }
  1246.         }
  1247.         return $this;
  1248.     }
  1249.     /**
  1250.      * @return Collection|EditionLegende[]
  1251.      */
  1252.     public function getEditionLegendes(): Collection
  1253.     {
  1254.         return $this->editionLegendes;
  1255.     }
  1256.     public function addEditionLegende(EditionLegende $editionLegende): self
  1257.     {
  1258.         if (!$this->editionLegendes->contains($editionLegende)) {
  1259.             $this->editionLegendes[] = $editionLegende;
  1260.             $editionLegende->setOwner($this);
  1261.         }
  1262.         return $this;
  1263.     }
  1264.     public function removeEditionLegende(EditionLegende $editionLegende): self
  1265.     {
  1266.         if ($this->editionLegendes->contains($editionLegende)) {
  1267.             $this->editionLegendes->removeElement($editionLegende);
  1268.             // set the owning side to null (unless already changed)
  1269.             if ($editionLegende->getOwner() === $this) {
  1270.                 $editionLegende->setOwner(null);
  1271.             }
  1272.         }
  1273.         return $this;
  1274.     }
  1275.     /**
  1276.      * @return Collection|editionLegendeItem[]
  1277.      */
  1278.     public function getEditionLegendeItems(): Collection
  1279.     {
  1280.         return $this->editionLegendeItems;
  1281.     }
  1282.     public function addEditionLegendeItem(EditionLegendeItem $editionLegendeItem): self
  1283.     {
  1284.         if (!$this->editionLegendeItems->contains($editionLegendeItem)) {
  1285.             $this->editionLegendeItems[] = $editionLegendeItem;
  1286.             $editionLegendeItem->setEntity($this);
  1287.         }
  1288.         return $this;
  1289.     }
  1290.     public function removeEditionLegendeItem(EditionLegendeItem $editionLegendeItem): self
  1291.     {
  1292.         if ($this->editionLegendeItems->contains($editionLegendeItem)) {
  1293.             $this->editionLegendeItems->removeElement($editionLegendeItem);
  1294.             // set the owning side to null (unless already changed)
  1295.             if ($editionLegendeItem->getEntity() === $this) {
  1296.                 $editionLegendeItem->setEntity(null);
  1297.             }
  1298.         }
  1299.         return $this;
  1300.     }
  1301.     /**
  1302.      * @return Collection|Diaporama[]
  1303.      */
  1304.     public function getDiaporamas(): Collection
  1305.     {
  1306.         return $this->diaporamas;
  1307.     }
  1308.     public function addDiaporama(Diaporama $diaporama): self
  1309.     {
  1310.         if (!$this->diaporamas->contains($diaporama)) {
  1311.             $this->diaporamas[] = $diaporama;
  1312.             $diaporama->setOwner($this);
  1313.         }
  1314.         return $this;
  1315.     }
  1316.     public function removeDiaporama(Diaporama $diaporama): self
  1317.     {
  1318.         if ($this->diaporamas->contains($diaporama)) {
  1319.             $this->diaporamas->removeElement($diaporama);
  1320.             // set the owning side to null (unless already changed)
  1321.             if ($diaporama->getOwner() === $this) {
  1322.                 $diaporama->setOwner(null);
  1323.             }
  1324.         }
  1325.         return $this;
  1326.     }
  1327.     /**
  1328.      * @return Collection|EditionPlanification[]
  1329.      */
  1330.     public function getEditionPlanifications(): Collection
  1331.     {
  1332.         return $this->editionPlanifications;
  1333.     }
  1334.     public function addEditionPlanification(EditionPlanification $editionPlanification): self
  1335.     {
  1336.         if (!$this->editionPlanifications->contains($editionPlanification)) {
  1337.             $this->editionPlanifications[] = $editionPlanification;
  1338.             $editionPlanification->setOwner($this);
  1339.         }
  1340.         return $this;
  1341.     }
  1342.     public function removeEditionPlanification(EditionPlanification $editionPlanification): self
  1343.     {
  1344.         if ($this->editionPlanifications->contains($editionPlanification)) {
  1345.             $this->editionPlanifications->removeElement($editionPlanification);
  1346.             // set the owning side to null (unless already changed)
  1347.             if ($editionPlanification->getOwner() === $this) {
  1348.                 $editionPlanification->setOwner(null);
  1349.             }
  1350.         }
  1351.         return $this;
  1352.     }
  1353.     /**
  1354.      * @return Collection|WebMap[]
  1355.      */
  1356.     public function getWebMaps(): Collection
  1357.     {
  1358.         return $this->webMaps;
  1359.     }
  1360.     public function addWebMap(WebMap $webMap): self
  1361.     {
  1362.         if (!$this->webMaps->contains($webMap)) {
  1363.             $this->webMaps[] = $webMap;
  1364.             $webMap->setOwner($this);
  1365.         }
  1366.         return $this;
  1367.     }
  1368.     public function removeWebMap(WebMap $webMap): self
  1369.     {
  1370.         if ($this->webMaps->contains($webMap)) {
  1371.             $this->webMaps->removeElement($webMap);
  1372.             // set the owning side to null (unless already changed)
  1373.             if ($webMap->getOwner() === $this) {
  1374.                 $webMap->setOwner(null);
  1375.             }
  1376.         }
  1377.         return $this;
  1378.     }
  1379.     /**
  1380.      * @return Collection|DeeplTranslationConfig[]
  1381.      */
  1382.     public function getDeeplTranslationConfigs(): Collection
  1383.     {
  1384.         return $this->deeplTranslationConfigs;
  1385.     }
  1386.     public function addDeeplTranslationConfig(DeeplTranslationConfig $deeplTranslationConfig): self
  1387.     {
  1388.         if (!$this->deeplTranslationConfigs->contains($deeplTranslationConfig)) {
  1389.             $this->deeplTranslationConfigs[] = $deeplTranslationConfig;
  1390.             $deeplTranslationConfig->setOwner($this);
  1391.         }
  1392.         return $this;
  1393.     }
  1394.     public function removeDeeplTranslationConfig(DeeplTranslationConfig $deeplTranslationConfig): self
  1395.     {
  1396.         if ($this->deeplTranslationConfigs->contains($deeplTranslationConfig)) {
  1397.             $this->deeplTranslationConfigs->removeElement($deeplTranslationConfig);
  1398.             // set the owning side to null (unless already changed)
  1399.             if ($deeplTranslationConfig->getOwner() === $this) {
  1400.                 $deeplTranslationConfig->setOwner(null);
  1401.             }
  1402.         }
  1403.         return $this;
  1404.     }
  1405.     /**
  1406.      * @return Collection|DeeplTranslationParam[]
  1407.      */
  1408.     public function getDeeplTranslationParams(): Collection
  1409.     {
  1410.         return $this->deeplTranslationParams;
  1411.     }
  1412.     public function addDeeplTranslationParam(DeeplTranslationParam $deeplTranslationParam): self
  1413.     {
  1414.         if (!$this->deeplTranslationParams->contains($deeplTranslationParam)) {
  1415.             $this->deeplTranslationParams[] = $deeplTranslationParam;
  1416.             $deeplTranslationParam->setOwner($this);
  1417.         }
  1418.         return $this;
  1419.     }
  1420.     public function removeDeeplTranslationParam(DeeplTranslationParam $deeplTranslationParam): self
  1421.     {
  1422.         if ($this->deeplTranslationParams->contains($deeplTranslationParam)) {
  1423.             $this->deeplTranslationParams->removeElement($deeplTranslationParam);
  1424.             // set the owning side to null (unless already changed)
  1425.             if ($deeplTranslationParam->getOwner() === $this) {
  1426.                 $deeplTranslationParam->setOwner(null);
  1427.             }
  1428.         }
  1429.         return $this;
  1430.     }
  1431.     /**
  1432.      * @return Collection|ApidaeTranslationConfig[]
  1433.      */
  1434.     public function getApidaeTranslationConfigs(): Collection
  1435.     {
  1436.         return $this->apidaeTranslationConfigs;
  1437.     }
  1438.     public function addApidaeTranslationConfig(ApidaeTranslationConfig $apidaeTranslationConfig): self
  1439.     {
  1440.         if (!$this->apidaeTranslationConfigs->contains($apidaeTranslationConfig)) {
  1441.             $this->apidaeTranslationConfigs[] = $apidaeTranslationConfig;
  1442.             $apidaeTranslationConfig->setOwner($this);
  1443.         }
  1444.         return $this;
  1445.     }
  1446.     public function removeApidaeTranslationConfig(ApidaeTranslationConfig $apidaeTranslationConfig): self
  1447.     {
  1448.         if ($this->apidaeTranslationConfigs->contains($apidaeTranslationConfig)) {
  1449.             $this->apidaeTranslationConfigs->removeElement($apidaeTranslationConfig);
  1450.             // set the owning side to null (unless already changed)
  1451.             if ($apidaeTranslationConfig->getOwner() === $this) {
  1452.                 $apidaeTranslationConfig->setOwner(null);
  1453.             }
  1454.         }
  1455.         return $this;
  1456.     }
  1457.     /**
  1458.      * @return Collection|ApidaeWriteConfigurations[]
  1459.      */
  1460.     public function getApidaeWriteConfigurations(): Collection
  1461.     {
  1462.         return $this->apidaeWriteConfigurations;
  1463.     }
  1464.     public function addApidaeWriteConfiguration(ApidaeWriteConfiguration $apidaeWriteConfiguration): self
  1465.     {
  1466.         if (!$this->apidaeWriteConfigurations->contains($apidaeWriteConfiguration)) {
  1467.             $this->apidaeWriteConfigurations[] = $apidaeWriteConfiguration;
  1468.             $apidaeWriteConfiguration->setOwner($this);
  1469.         }
  1470.         return $this;
  1471.     }
  1472.     public function removeApidaeWriteConfiguration(ApidaeWriteConfiguration $apidaeWriteConfiguration): self
  1473.     {
  1474.         if ($this->apidaeWriteConfigurations->contains($apidaeWriteConfiguration)) {
  1475.             $this->apidaeWriteConfigurations->removeElement($apidaeWriteConfiguration);
  1476.             // set the owning side to null (unless already changed)
  1477.             if ($apidaeWriteConfiguration->getOwner() === $this) {
  1478.                 $apidaeWriteConfiguration->setOwner(null);
  1479.             }
  1480.         }
  1481.         return $this;
  1482.     }
  1483.     /**
  1484.      * @return Collection|BridgeUserParameter[]
  1485.      */
  1486.     public function getBridgeParameters(): Collection
  1487.     {
  1488.         return $this->bridgeParameters;
  1489.     }
  1490.     public function addBridgeParameter(BridgeUserParameter $parameter): self
  1491.     {
  1492.         if (!$this->bridgeParameters->contains($parameter)) {
  1493.             $this->bridgeParameters[] = $parameter;
  1494.             $parameter->setOwner($this);
  1495.         }
  1496.         return $this;
  1497.     }
  1498.     public function removeBridgeParameter(BridgeUserParameter $parameter): self
  1499.     {
  1500.         if ($this->bridgeParameters->contains($parameter)) {
  1501.             $this->bridgeParameters->removeElement($parameter);
  1502.             // set the owning side to null (unless already changed)
  1503.             if ($parameter->getOwner() === $this) {
  1504.                 $parameter->setOwner(null);
  1505.             }
  1506.         }
  1507.         return $this;
  1508.     }
  1509.     public function getParams(): ?array
  1510.     {
  1511.         return $this->params;
  1512.     }
  1513.     public function setParams(?array $params): self
  1514.     {
  1515.         $this->params $params;
  1516.         return $this;
  1517.     }
  1518.     /**
  1519.      * @return Collection|ResetPasswordRequest[]
  1520.      */
  1521.     public function getResetPasswordRequests(): Collection
  1522.     {
  1523.         return $this->resetPasswordRequests;
  1524.     }
  1525.     public function addResetPasswordRequest(ResetPasswordRequest $resetPasswordRequest): self
  1526.     {
  1527.         if (!$this->resetPasswordRequests->contains($resetPasswordRequest)) {
  1528.             $this->resetPasswordRequests[] = $resetPasswordRequest;
  1529.             $resetPasswordRequest->setUser($this);
  1530.         }
  1531.         return $this;
  1532.     }
  1533.     public function removeResetPasswordRequest(ResetPasswordRequest $resetPasswordRequest): self
  1534.     {
  1535.         if ($this->resetPasswordRequests->contains($resetPasswordRequest)) {
  1536.             $this->resetPasswordRequests->removeElement($resetPasswordRequest);
  1537.             // Set the owning side to null (unless already changed)
  1538.             if ($resetPasswordRequest->getUser() === $this) {
  1539.                 $resetPasswordRequest->setUser(null);
  1540.             }
  1541.         }
  1542.         return $this;
  1543.     }
  1544. }