<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* User
*
* @ORM\Table(name="dn_user")
* @ORM\Entity
*/
class User implements UserInterface
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="dn_user_id_seq", allocationSize=1, initialValue=1)
*/
protected $id;
/**
* @ORM\Column(type="string", length=255, unique=true)
*/
private $username;
/**
* @ORM\Column(type="string", length=255, nullable=true, unique=true)
*/
private $leiUserId;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $leiPwKey;
/**
* @ORM\Column(type="string", length=255, nullable=true, unique=true)
*/
private $tourinsoftUserId;
/**
* @ORM\Column(type="string", length=2000, nullable=true)
*/
private $tourinsoftToken;
/**
* @ORM\Column(type="string", length=255, nullable=true, unique=true)
*/
private $apidaeUserId;
/**
* @ORM\Column(type="string", length=255, unique=true)
*/
private $email;
/**
* @ORM\Column(type="string", length=500)
*/
private $password;
/**
* @ORM\Column(type="string", nullable=true, length=255)
*/
private $firstname;
/**
* @ORM\Column(type="string", nullable=true, length=255)
*/
private $lastname;
/**
* @ORM\Column(name="is_active", type="boolean")
*/
private $isActive;
/**
* @ORM\Column(name="roles", type="array")
*/
private $roles;
/**
* @var \App\Entity\DnsitEntity
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="users")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="entity", referencedColumnName="id")
* })
*/
private $entity;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Annonce", mappedBy="owner", cascade={"persist","remove"})
*/
private $annonces;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\TagAnnonce", mappedBy="owner", cascade={"persist","remove"})
*/
private $tagAnnonces;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\AnnonceSpace", mappedBy="owner", cascade={"persist","remove"})
*/
private $annonceSpaces;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Site", mappedBy="owner", cascade={"persist","remove"})
*/
private $sites;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Block", mappedBy="owner", cascade={"persist","remove"})
*/
private $blocks;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\BlockField", mappedBy="owner", cascade={"persist","remove"})
*/
private $blockFields;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\BlockFieldItem", mappedBy="owner", cascade={"persist","remove"})
*/
private $blockFieldItems;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Selection", mappedBy="owner", cascade={"persist","remove"})
*/
private $selections;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\SelectionItem", mappedBy="owner", cascade={"persist","remove"})
*/
private $selectionItems;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebEngine", mappedBy="owner", cascade={"persist","remove"})
*/
private $webEngines;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\EditionsPlanner", mappedBy="owner", cascade={"persist","remove"})
*/
private $editionsPlanners;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebEngineSection", mappedBy="owner", cascade={"persist","remove"})
*/
private $webEngineSections;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebEngineSubSection", mappedBy="owner", cascade={"persist","remove"})
*/
private $webEngineSubSections;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebSubSectionFilter", mappedBy="owner", cascade={"persist","remove"})
*/
private $webSubSectionFilters;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebFilter", mappedBy="owner", cascade={"persist","remove"})
*/
private $webFilters;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebFilterItem", mappedBy="owner", cascade={"persist","remove"})
*/
private $webFilterItems;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="owner", cascade={"persist","remove"})
*/
private $webLists;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\ListModel", mappedBy="owner", cascade={"persist","remove"})
*/
private $listModels;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebListBlock", mappedBy="owner", cascade={"persist","remove"})
*/
private $webListBlocks;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebPage", mappedBy="owner", cascade={"persist","remove"})
*/
private $webPages;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebPageBlock", mappedBy="owner", cascade={"persist","remove"})
*/
private $webPageBlocks;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Media", mappedBy="owner", cascade={"persist","remove"})
*/
private $medias;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\EditionModele", mappedBy="owner", cascade={"persist","remove"})
*/
private $editionModeles;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubriqueDynamiqueModele", mappedBy="owner", cascade={"persist","remove"})
*/
private $editionModeleRubriqueDynamiques;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Tag", mappedBy="owner", cascade={"persist","remove"})
*/
private $tags;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\TagMedia", mappedBy="owner", cascade={"persist","remove"})
*/
private $mediaTags;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\DnsitScoringProfile", mappedBy="owner", cascade={"persist","remove"})
*/
private $scoringProfiles;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\DnsitScoring", mappedBy="owner", cascade={"persist","remove"})
*/
private $scorings;
/**
* @ORM\OneToMany(targetEntity="App\Entity\DiaporamaBlock", mappedBy="owner")
*/
private $diaporamaBlocks;
/**
* @ORM\OneToMany(targetEntity="App\Entity\EditionLegende", mappedBy="owner")
*/
private $editionLegendes;
/**
* @ORM\OneToMany(targetEntity="App\Entity\EditionLegendeItem", mappedBy="owner")
*/
private $editionLegendeItems;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="owner")
*/
private $diaporamas;
/**
* @ORM\OneToMany(targetEntity="App\Entity\EditionPlanification", mappedBy="owner")
*/
private $editionPlanifications;
/**
* @var \Doctrine\Common\Collections\Collection
* @ORM\OneToMany(targetEntity="App\Entity\WebMap", mappedBy="owner")
*/
private $webMaps;
/**
* @var \Doctrine\Common\Collections\Collection
* @ORM\OneToMany(targetEntity="App\Entity\DeeplTranslationConfig", mappedBy="owner")
*/
private $deeplTranslationConfigs;
/**
* @var \Doctrine\Common\Collections\Collection
* @ORM\OneToMany(targetEntity="App\Entity\DeeplTranslationParam", mappedBy="owner")
*/
private $deeplTranslationParams;
/**
* @var \Doctrine\Common\Collections\Collection
* @ORM\OneToMany(targetEntity="App\Entity\ApidaeTranslationConfig", mappedBy="owner")
*/
private $apidaeTranslationConfigs;
/**
* @var \Doctrine\Common\Collections\Collection
* @ORM\OneToMany(targetEntity="App\Entity\ApidaeWriteConfiguration", mappedBy="owner")
*/
private $apidaeWriteConfigurations;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $params;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\BridgeUserParameter", mappedBy="owner", cascade={"persist","remove"})
*/
private $bridgeParameters;
/**
* @var Collection|ResetPasswordRequest[]
*
* @ORM\OneToMany(targetEntity="App\Entity\ResetPasswordRequest", mappedBy="user", cascade={"persist", "remove"})
*/
private $resetPasswordRequests;
/**
* User constructor.
* @param $username
*/
public function __construct(string $username='')
{
$this->isActive = true;
$this->username = $username;
$this->blocks = new ArrayCollection();
$this->blockFields = new ArrayCollection();
$this->blockFieldItems = new ArrayCollection();
$this->selections = new ArrayCollection();
$this->selectionItems = new ArrayCollection();
$this->editionsPlanners = new ArrayCollection();
$this->webEngines = new ArrayCollection();
$this->webEngineSections = new ArrayCollection();
$this->webEngineSubSections = new ArrayCollection();
$this->webSubSectionFilters = new ArrayCollection();
$this->webFilters = new ArrayCollection();
$this->webFilterItems = new ArrayCollection();
$this->webLists = new ArrayCollection();
$this->listModels = new ArrayCollection();
$this->webListBlocks = new ArrayCollection();
$this->webPages = new ArrayCollection();
$this->webPageBlocks = new ArrayCollection();
$this->medias = new ArrayCollection();
$this->editionModeles = new ArrayCollection();
$this->editionModeleRubriqueDynamiques = new ArrayCollection();
$this->tags = new ArrayCollection();
$this->annonces = new ArrayCollection();
$this->tagAnnonces = new ArrayCollection();
$this->mediaTags = new ArrayCollection();
$this->scoringProfiles = new ArrayCollection();
$this->scorings = new ArrayCollection();
$this->editionLegendes = new ArrayCollection();
$this->editionLegendeItems = new ArrayCollection();
$this->diaporamaBlocks = new ArrayCollection();
$this->diaporamas = new ArrayCollection();
$this->editionPlanifications = new ArrayCollection();
$this->webMaps = new ArrayCollection();
$this->sites = new ArrayCollection();
$this->deeplTranslationParams = new ArrayCollection();
$this->deeplTranslationConfigs = new ArrayCollection();
$this->apidaeTranslationConfigs = new ArrayCollection();
$this->apidaeWriteConfigurations = new ArrayCollection();
$this->bridgeParameters = new ArrayCollection();
$this->resetPasswordRequests = new ArrayCollection();
$this->params = ['doNotShowAgain' => false];
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* @return mixed
*/
public function getEmail()
{
return $this->email;
}
/**
* @param mixed $email
*/
public function setEmail($email): void
{
$this->email = $email;
}
/**
* @return string|null
*/
public function getSalt()
{
return null;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param $password
*/
public function setPassword($password)
{
$this->password = $password;
}
public function eraseCredentials()
{
}
/**
* @return mixed
*/
public function getRoles()
{
return $this->roles;
}
/**
* @param mixed $roles
*/
public function setRoles($roles): void
{
$this->roles = $roles;
}
/**
* @return mixed
*/
public function getFirstname()
{
return $this->firstname;
}
/**
* @param mixed $firstname
*/
public function setFirstname($firstname): void
{
$this->firstname = $firstname;
}
/**
* @return mixed
*/
public function getLastname()
{
return $this->lastname;
}
/**
* @param mixed $lastname
*/
public function setLastname($lastname): void
{
$this->lastname = $lastname;
}
public function setUsername(string $username): self
{
$this->username = $username;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getLeiUserId(): ?string
{
return $this->leiUserId;
}
public function setLeiUserId(?string $leiUserId): self
{
$this->leiUserId = $leiUserId;
return $this;
}
public function getLeiPwKey(): ?string
{
return $this->leiPwKey;
}
public function setLeiPwKey(?string $leiPwKey): self
{
$this->leiPwKey = $leiPwKey;
return $this;
}
public function getTourinsoftUserId(): ?string
{
return $this->tourinsoftUserId;
}
public function setTourinsoftUserId(?string $tourinsoftUserId): self
{
$this->tourinsoftUserId = $tourinsoftUserId;
return $this;
}
public function getApidaeUserId(): ?string
{
return $this->apidaeUserId;
}
public function setApidaeUserId(?string $apidaeUserId): self
{
$this->apidaeUserId = $apidaeUserId;
return $this;
}
public function getTourinsoftToken(): ?string
{
return $this->tourinsoftToken;
}
public function setTourinsoftToken(?string $tourinsoftToken): self
{
$this->tourinsoftToken = $tourinsoftToken;
return $this;
}
public function getEntity(): ?DnsitEntity
{
return $this->entity;
}
public function setEntity(?DnsitEntity $entity): self
{
$this->entity = $entity;
return $this;
}
/**
* @return Collection|Annonce[]
*/
public function getAnnonces(): Collection
{
return $this->annonces;
}
public function addAnnonce(Annonce $annonce): self
{
if (!$this->annonces->contains($annonce)) {
$this->annonces[] = $annonce;
$annonce->setEntity($this);
}
return $this;
}
public function removeAnnonces(Annonce $annonce): self
{
if ($this->annonces->contains($annonce)) {
$this->annonces->removeElement($annonce);
// set the owning side to null (unless already changed)
if ($annonce->getEntity() === $this) {
$annonce->setEntity(null);
}
}
return $this;
}
/**
* @return Collection|TagAnnonce[]
*/
public function getTagAnnonces(): Collection
{
return $this->tagAnnonces;
}
public function addTagAnnonce(TagAnnonce $tagAnnonce): self
{
if (!$this->tagAnnonces->contains($tagAnnonce)) {
$this->tagAnnonces[] = $tagAnnonce;
$tagAnnonce->setEntity($this);
}
return $this;
}
public function removeTagAnnonces(TagAnnonce $tagAnnonce): self
{
if ($this->tagAnnonces->contains($tagAnnonce)) {
$this->tagAnnonces->removeElement($tagAnnonce);
// set the owning side to null (unless already changed)
if ($tagAnnonce->getEntity() === $this) {
$tagAnnonce->setEntity(null);
}
}
return $this;
}
/**
* @return Collection|Site[]
*/
public function getSites(): Collection
{
return $this->sites;
}
public function addSite(Site $site): self
{
if (!$this->sites->contains($site)) {
$this->sites[] = $site;
$site->setOwner($this);
}
return $this;
}
public function removeSite(Site $site): self
{
if ($this->sites->contains($site)) {
$this->sites->removeElement($site);
// set the owning side to null (unless already changed)
if ($site->getOwner() === $this) {
$site->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Block[]
*/
public function getBlocks(): Collection
{
return $this->blocks;
}
public function addBlock(Block $block): self
{
if (!$this->blocks->contains($block)) {
$this->blocks[] = $block;
$block->setOwner($this);
}
return $this;
}
public function removeBlock(Block $block): self
{
if ($this->blocks->contains($block)) {
$this->blocks->removeElement($block);
// set the owning side to null (unless already changed)
if ($block->getOwner() === $this) {
$block->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|BlockField[]
*/
public function getBlockFields(): Collection
{
return $this->blockFields;
}
public function addBlockField(BlockField $blockField): self
{
if (!$this->blockFields->contains($blockField)) {
$this->blockFields[] = $blockField;
$blockField->setOwner($this);
}
return $this;
}
public function removeBlockField(BlockField $blockField): self
{
if ($this->blockFields->contains($blockField)) {
$this->blockFields->removeElement($blockField);
// set the owning side to null (unless already changed)
if ($blockField->getOwner() === $this) {
$blockField->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|BlockFieldItem[]
*/
public function getBlockFieldItems(): Collection
{
return $this->blockFieldItems;
}
public function addBlockFieldItem(BlockFieldItem $blockFieldItem): self
{
if (!$this->blockFieldItems->contains($blockFieldItem)) {
$this->blockFieldItems[] = $blockFieldItem;
$blockFieldItem->setOwner($this);
}
return $this;
}
public function removeBlockFieldItem(BlockFieldItem $blockFieldItem): self
{
if ($this->blockFieldItems->contains($blockFieldItem)) {
$this->blockFieldItems->removeElement($blockFieldItem);
// set the owning side to null (unless already changed)
if ($blockFieldItem->getOwner() === $this) {
$blockFieldItem->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Selection[]
*/
public function getSelections(): Collection
{
return $this->selections;
}
public function addSelection(Selection $selection): self
{
if (!$this->selections->contains($selection)) {
$this->selections[] = $selection;
$selection->setOwner($this);
}
return $this;
}
public function removeSelection(Selection $selection): self
{
if ($this->selections->contains($selection)) {
$this->selections->removeElement($selection);
// set the owning side to null (unless already changed)
if ($selection->getOwner() === $this) {
$selection->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|SelectionItem[]
*/
public function getSelectionItems(): Collection
{
return $this->selectionItems;
}
public function addSelectionItem(SelectionItem $selectionItem): self
{
if (!$this->selectionItems->contains($selectionItem)) {
$this->selectionItems[] = $selectionItem;
$selectionItem->setOwner($this);
}
return $this;
}
public function removeSelectionItem(SelectionItem $selectionItem): self
{
if ($this->selectionItems->contains($selectionItem)) {
$this->selectionItems->removeElement($selectionItem);
// set the owning side to null (unless already changed)
if ($selectionItem->getOwner() === $this) {
$selectionItem->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|EditionsPlanner[]
*/
public function getEditionsPlanners(): Collection
{
return $this->editionsPlanners;
}
public function addEditionsPlanner(EditionsPlanner $editionsPlanner): self
{
if (!$this->editionsPlanners->contains($editionsPlanner)) {
$this->editionsPlanners[] = $editionsPlanner;
$editionsPlanner->setOwner($this);
}
return $this;
}
public function removeEditionsPlanner(EditionsPlanner $editionsPlanner): self
{
if ($this->editionsPlanners->contains($editionsPlanner)) {
$this->editionsPlanners->removeElement($editionsPlanner);
// set the owning side to null (unless already changed)
if ($editionsPlanner->getOwner() === $this) {
$editionsPlanner->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebEngine[]
*/
public function getWebEngines(): Collection
{
return $this->webEngines;
}
public function addWebEngine(WebEngine $webEngine): self
{
if (!$this->webEngines->contains($webEngine)) {
$this->webEngines[] = $webEngine;
$webEngine->setOwner($this);
}
return $this;
}
public function removeWebEngine(WebEngine $webEngine): self
{
if ($this->webEngines->contains($webEngine)) {
$this->webEngines->removeElement($webEngine);
// set the owning side to null (unless already changed)
if ($webEngine->getOwner() === $this) {
$webEngine->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebEngineSection[]
*/
public function getWebEngineSections(): Collection
{
return $this->webEngineSections;
}
public function addWebEngineSection(WebEngineSection $webEngineSection): self
{
if (!$this->webEngineSections->contains($webEngineSection)) {
$this->webEngineSections[] = $webEngineSection;
$webEngineSection->setOwner($this);
}
return $this;
}
public function removeWebEngineSection(WebEngineSection $webEngineSection): self
{
if ($this->webEngineSections->contains($webEngineSection)) {
$this->webEngineSections->removeElement($webEngineSection);
// set the owning side to null (unless already changed)
if ($webEngineSection->getOwner() === $this) {
$webEngineSection->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebEngineSubSection[]
*/
public function getWebEngineSubSections(): Collection
{
return $this->webEngineSubSections;
}
public function addWebEngineSubSection(WebEngineSubSection $webEngineSubSection): self
{
if (!$this->webEngineSubSections->contains($webEngineSubSection)) {
$this->webEngineSubSections[] = $webEngineSubSection;
$webEngineSubSection->setOwner($this);
}
return $this;
}
public function removeWebEngineSubSection(WebEngineSubSection $webEngineSubSection): self
{
if ($this->webEngineSubSections->contains($webEngineSubSection)) {
$this->webEngineSubSections->removeElement($webEngineSubSection);
// set the owning side to null (unless already changed)
if ($webEngineSubSection->getOwner() === $this) {
$webEngineSubSection->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebSubSectionFilter[]
*/
public function getWebSubSectionFilters(): Collection
{
return $this->webSubSectionFilters;
}
public function addWebSubSectionFilter(WebSubSectionFilter $webSubSectionFilter): self
{
if (!$this->webSubSectionFilters->contains($webSubSectionFilter)) {
$this->webSubSectionFilters[] = $webSubSectionFilter;
$webSubSectionFilter->setOwner($this);
}
return $this;
}
public function removeWebSubSectionFilter(WebSubSectionFilter $webSubSectionFilter): self
{
if ($this->webSubSectionFilters->contains($webSubSectionFilter)) {
$this->webSubSectionFilters->removeElement($webSubSectionFilter);
// set the owning side to null (unless already changed)
if ($webSubSectionFilter->getOwner() === $this) {
$webSubSectionFilter->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebFilter[]
*/
public function getWebFilters(): Collection
{
return $this->webFilters;
}
public function addWebFilter(WebFilter $webFilter): self
{
if (!$this->webFilters->contains($webFilter)) {
$this->webFilters[] = $webFilter;
$webFilter->setOwner($this);
}
return $this;
}
public function removeWebFilter(WebFilter $webFilter): self
{
if ($this->webFilters->contains($webFilter)) {
$this->webFilters->removeElement($webFilter);
// set the owning side to null (unless already changed)
if ($webFilter->getOwner() === $this) {
$webFilter->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebFilterItem[]
*/
public function getWebFilterItems(): Collection
{
return $this->webFilterItems;
}
public function addWebFilterItem(WebFilterItem $webFilterItem): self
{
if (!$this->webFilterItems->contains($webFilterItem)) {
$this->webFilterItems[] = $webFilterItem;
$webFilterItem->setOwner($this);
}
return $this;
}
public function removeWebFilterItem(WebFilterItem $webFilterItem): self
{
if ($this->webFilterItems->contains($webFilterItem)) {
$this->webFilterItems->removeElement($webFilterItem);
// set the owning side to null (unless already changed)
if ($webFilterItem->getOwner() === $this) {
$webFilterItem->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebLists(): Collection
{
return $this->webLists;
}
public function addWebList(WebList $webList): self
{
if (!$this->webLists->contains($webList)) {
$this->webLists[] = $webList;
$webList->setOwner($this);
}
return $this;
}
public function removeWebList(WebList $webList): self
{
if ($this->webLists->contains($webList)) {
$this->webLists->removeElement($webList);
// set the owning side to null (unless already changed)
if ($webList->getOwner() === $this) {
$webList->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|ListModel[]
*/
public function getListModels(): Collection
{
return $this->listModels;
}
public function addListModel(ListModel $listModel): self
{
if (!$this->listModels->contains($listModel)) {
$this->listModels[] = $listModel;
$listModel->setOwner($this);
}
return $this;
}
public function removeListModel(ListModel $listModel): self
{
if ($this->listModels->contains($listModel)) {
$this->listModels->removeElement($listModel);
// set the owning side to null (unless already changed)
if ($listModel->getOwner() === $this) {
$listModel->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebListBlock[]
*/
public function getWebListBlocks(): Collection
{
return $this->webListBlocks;
}
public function addWebListBlock(WebListBlock $webListBlock): self
{
if (!$this->webListBlocks->contains($webListBlock)) {
$this->webListBlocks[] = $webListBlock;
$webListBlock->setOwner($this);
}
return $this;
}
public function removeWebListBlock(WebListBlock $webListBlock): self
{
if ($this->webListBlocks->contains($webListBlock)) {
$this->webListBlocks->removeElement($webListBlock);
// set the owning side to null (unless already changed)
if ($webListBlock->getOwner() === $this) {
$webListBlock->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebPage[]
*/
public function getWebPages(): Collection
{
return $this->webPages;
}
public function addWebPage(WebPage $webPage): self
{
if (!$this->webPages->contains($webPage)) {
$this->webPages[] = $webPage;
$webPage->setOwner($this);
}
return $this;
}
public function removeWebPage(WebPage $webPage): self
{
if ($this->webPages->contains($webPage)) {
$this->webPages->removeElement($webPage);
// set the owning side to null (unless already changed)
if ($webPage->getOwner() === $this) {
$webPage->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebPageBlock[]
*/
public function getWebPageBlocks(): Collection
{
return $this->webPageBlocks;
}
public function addWebPageBlock(WebPageBlock $webPageBlock): self
{
if (!$this->webPageBlocks->contains($webPageBlock)) {
$this->webPageBlocks[] = $webPageBlock;
$webPageBlock->setOwner($this);
}
return $this;
}
public function removeWebPageBlock(WebPageBlock $webPageBlock): self
{
if ($this->webPageBlocks->contains($webPageBlock)) {
$this->webPageBlocks->removeElement($webPageBlock);
// set the owning side to null (unless already changed)
if ($webPageBlock->getOwner() === $this) {
$webPageBlock->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Media[]
*/
public function getMedias(): Collection
{
return $this->webFilters;
}
public function addMedia(Media $media): self
{
if (!$this->medias->contains($media)) {
$this->medias[] = $media;
$media->setOwner($this);
}
return $this;
}
public function removeMedia(Media $media): self
{
if ($this->medias->contains($media)) {
$this->medias->removeElement($media);
// set the owning side to null (unless already changed)
if ($media->getOwner() === $this) {
$media->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|EditionModele[]
*/
public function getEditionModeles(): Collection
{
return $this->editionModeles;
}
public function addEditionModele(EditionModele $editionModele): self
{
if (!$this->editionModeles->contains($editionModele)) {
$this->editionModeles[] = $editionModele;
$editionModele->setOwner($this);
}
return $this;
}
public function removeEditionModele(EditionModele $editionModele): self
{
if ($this->editionModeles->contains($editionModele)) {
$this->editionModeles->removeElement($editionModele);
// set the owning side to null (unless already changed)
if ($editionModele->getOwner() === $this) {
$editionModele->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|EditionModeleRubriqueDynamiqueModele[]
*/
public function getEditionModeleRubriqueDynamiques(): Collection
{
return $this->editionModeleRubriqueDynamiques;
}
public function addEditionModeleRubriqueDynamique(EditionModeleRubriqueDynamiqueModele $editionModeleRubriqueDynamique): self
{
if (!$this->editionModeleRubriqueDynamiques->contains($editionModeleRubriqueDynamique)) {
$this->editionModeleRubriqueDynamiques[] = $editionModeleRubriqueDynamique;
$editionModeleRubriqueDynamique->setOwner($this);
}
return $this;
}
public function removeEditionModeleRubriqueDynamique(EditionModeleRubriqueDynamiqueModele $editionModeleRubriqueDynamique): self
{
if ($this->editionModeleRubriqueDynamiques->contains($editionModeleRubriqueDynamique)) {
$this->editionModeleRubriqueDynamiques->removeElement($editionModeleRubriqueDynamique);
// set the owning side to null (unless already changed)
if ($editionModeleRubriqueDynamique->getOwner() === $this) {
$editionModeleRubriqueDynamique->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Tag[]
*/
public function getTags(): Collection
{
return $this->tags;
}
public function addTag(Tag $tag): self
{
if (!$this->tags->contains($tag)) {
$this->tags[] = $tag;
$tag->setOwner($this);
}
return $this;
}
public function removeTag(Tag $tag): self
{
if ($this->tags->contains($tag)) {
$this->tags->removeElement($tag);
// set the owning side to null (unless already changed)
if ($tag->getOwner() === $this) {
$tag->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|TagMedia[]
*/
public function getMediaTags(): Collection
{
return $this->mediaTags;
}
public function addMediaTag(TagMedia $tagMedia): self
{
if (!$this->mediaTags->contains($tagMedia)) {
$this->mediaTags[] = $tagMedia;
$tagMedia->setOwner($this);
}
return $this;
}
public function removeMediaTag(TagMedia $tagMedia): self
{
if ($this->mediaTags->contains($tagMedia)) {
$this->mediaTags->removeElement($tagMedia);
// set the owning side to null (unless already changed)
if ($tagMedia->getOwner() === $this) {
$tagMedia->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|DnsitScoringProfile[]
*/
public function getScoringProfiles(): Collection
{
return $this->scoringProfiles;
}
public function addScoringProfile(DnsitScoringProfile $scoringProfile): self
{
if (!$this->scoringProfiles->contains($scoringProfile)) {
$this->scoringProfiles[] = $scoringProfile;
$scoringProfile->setOwner($this);
}
return $this;
}
public function removeScoringProfile(DnsitScoringProfile $scoringProfile): self
{
if ($this->scoringProfiles->contains($scoringProfile)) {
$this->scoringProfiles->removeElement($scoringProfile);
// set the owning side to null (unless already changed)
if ($scoringProfile->getOwner() === $this) {
$scoringProfile->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|DnsitScoring[]
*/
public function getScorings(): Collection
{
return $this->scorings;
}
public function addScoring(DnsitScoring $scorings): self
{
if (!$this->scorings->contains($scorings)) {
$this->scorings[] = $scorings;
$scorings->setOwner($this);
}
return $this;
}
public function removeScoring(DnsitScoring $scorings): self
{
if ($this->scorings->contains($scorings)) {
$this->scorings->removeElement($scorings);
// set the owning side to null (unless already changed)
if ($scorings->getOwner() === $this) {
$scorings->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|DiaporamaBlock[]
*/
public function getDiaporamaBlocks(): Collection
{
return $this->diaporamaBlocks;
}
public function addDiaporamaBlock(DiaporamaBlock $diaporamaBlock): self
{
if (!$this->diaporamaBlocks->contains($diaporamaBlock)) {
$this->diaporamaBlocks[] = $diaporamaBlock;
$diaporamaBlock->setOwner($this);
}
return $this;
}
public function removeDiaporamaBlock(DiaporamaBlock $diaporamaBlock): self
{
if ($this->diaporamaBlocks->contains($diaporamaBlock)) {
$this->diaporamaBlocks->removeElement($diaporamaBlock);
// set the owning side to null (unless already changed)
if ($diaporamaBlock->getOwner() === $this) {
$diaporamaBlock->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|EditionLegende[]
*/
public function getEditionLegendes(): Collection
{
return $this->editionLegendes;
}
public function addEditionLegende(EditionLegende $editionLegende): self
{
if (!$this->editionLegendes->contains($editionLegende)) {
$this->editionLegendes[] = $editionLegende;
$editionLegende->setOwner($this);
}
return $this;
}
public function removeEditionLegende(EditionLegende $editionLegende): self
{
if ($this->editionLegendes->contains($editionLegende)) {
$this->editionLegendes->removeElement($editionLegende);
// set the owning side to null (unless already changed)
if ($editionLegende->getOwner() === $this) {
$editionLegende->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|editionLegendeItem[]
*/
public function getEditionLegendeItems(): Collection
{
return $this->editionLegendeItems;
}
public function addEditionLegendeItem(EditionLegendeItem $editionLegendeItem): self
{
if (!$this->editionLegendeItems->contains($editionLegendeItem)) {
$this->editionLegendeItems[] = $editionLegendeItem;
$editionLegendeItem->setEntity($this);
}
return $this;
}
public function removeEditionLegendeItem(EditionLegendeItem $editionLegendeItem): self
{
if ($this->editionLegendeItems->contains($editionLegendeItem)) {
$this->editionLegendeItems->removeElement($editionLegendeItem);
// set the owning side to null (unless already changed)
if ($editionLegendeItem->getEntity() === $this) {
$editionLegendeItem->setEntity(null);
}
}
return $this;
}
/**
* @return Collection|Diaporama[]
*/
public function getDiaporamas(): Collection
{
return $this->diaporamas;
}
public function addDiaporama(Diaporama $diaporama): self
{
if (!$this->diaporamas->contains($diaporama)) {
$this->diaporamas[] = $diaporama;
$diaporama->setOwner($this);
}
return $this;
}
public function removeDiaporama(Diaporama $diaporama): self
{
if ($this->diaporamas->contains($diaporama)) {
$this->diaporamas->removeElement($diaporama);
// set the owning side to null (unless already changed)
if ($diaporama->getOwner() === $this) {
$diaporama->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|EditionPlanification[]
*/
public function getEditionPlanifications(): Collection
{
return $this->editionPlanifications;
}
public function addEditionPlanification(EditionPlanification $editionPlanification): self
{
if (!$this->editionPlanifications->contains($editionPlanification)) {
$this->editionPlanifications[] = $editionPlanification;
$editionPlanification->setOwner($this);
}
return $this;
}
public function removeEditionPlanification(EditionPlanification $editionPlanification): self
{
if ($this->editionPlanifications->contains($editionPlanification)) {
$this->editionPlanifications->removeElement($editionPlanification);
// set the owning side to null (unless already changed)
if ($editionPlanification->getOwner() === $this) {
$editionPlanification->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|WebMap[]
*/
public function getWebMaps(): Collection
{
return $this->webMaps;
}
public function addWebMap(WebMap $webMap): self
{
if (!$this->webMaps->contains($webMap)) {
$this->webMaps[] = $webMap;
$webMap->setOwner($this);
}
return $this;
}
public function removeWebMap(WebMap $webMap): self
{
if ($this->webMaps->contains($webMap)) {
$this->webMaps->removeElement($webMap);
// set the owning side to null (unless already changed)
if ($webMap->getOwner() === $this) {
$webMap->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|DeeplTranslationConfig[]
*/
public function getDeeplTranslationConfigs(): Collection
{
return $this->deeplTranslationConfigs;
}
public function addDeeplTranslationConfig(DeeplTranslationConfig $deeplTranslationConfig): self
{
if (!$this->deeplTranslationConfigs->contains($deeplTranslationConfig)) {
$this->deeplTranslationConfigs[] = $deeplTranslationConfig;
$deeplTranslationConfig->setOwner($this);
}
return $this;
}
public function removeDeeplTranslationConfig(DeeplTranslationConfig $deeplTranslationConfig): self
{
if ($this->deeplTranslationConfigs->contains($deeplTranslationConfig)) {
$this->deeplTranslationConfigs->removeElement($deeplTranslationConfig);
// set the owning side to null (unless already changed)
if ($deeplTranslationConfig->getOwner() === $this) {
$deeplTranslationConfig->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|DeeplTranslationParam[]
*/
public function getDeeplTranslationParams(): Collection
{
return $this->deeplTranslationParams;
}
public function addDeeplTranslationParam(DeeplTranslationParam $deeplTranslationParam): self
{
if (!$this->deeplTranslationParams->contains($deeplTranslationParam)) {
$this->deeplTranslationParams[] = $deeplTranslationParam;
$deeplTranslationParam->setOwner($this);
}
return $this;
}
public function removeDeeplTranslationParam(DeeplTranslationParam $deeplTranslationParam): self
{
if ($this->deeplTranslationParams->contains($deeplTranslationParam)) {
$this->deeplTranslationParams->removeElement($deeplTranslationParam);
// set the owning side to null (unless already changed)
if ($deeplTranslationParam->getOwner() === $this) {
$deeplTranslationParam->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|ApidaeTranslationConfig[]
*/
public function getApidaeTranslationConfigs(): Collection
{
return $this->apidaeTranslationConfigs;
}
public function addApidaeTranslationConfig(ApidaeTranslationConfig $apidaeTranslationConfig): self
{
if (!$this->apidaeTranslationConfigs->contains($apidaeTranslationConfig)) {
$this->apidaeTranslationConfigs[] = $apidaeTranslationConfig;
$apidaeTranslationConfig->setOwner($this);
}
return $this;
}
public function removeApidaeTranslationConfig(ApidaeTranslationConfig $apidaeTranslationConfig): self
{
if ($this->apidaeTranslationConfigs->contains($apidaeTranslationConfig)) {
$this->apidaeTranslationConfigs->removeElement($apidaeTranslationConfig);
// set the owning side to null (unless already changed)
if ($apidaeTranslationConfig->getOwner() === $this) {
$apidaeTranslationConfig->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|ApidaeWriteConfigurations[]
*/
public function getApidaeWriteConfigurations(): Collection
{
return $this->apidaeWriteConfigurations;
}
public function addApidaeWriteConfiguration(ApidaeWriteConfiguration $apidaeWriteConfiguration): self
{
if (!$this->apidaeWriteConfigurations->contains($apidaeWriteConfiguration)) {
$this->apidaeWriteConfigurations[] = $apidaeWriteConfiguration;
$apidaeWriteConfiguration->setOwner($this);
}
return $this;
}
public function removeApidaeWriteConfiguration(ApidaeWriteConfiguration $apidaeWriteConfiguration): self
{
if ($this->apidaeWriteConfigurations->contains($apidaeWriteConfiguration)) {
$this->apidaeWriteConfigurations->removeElement($apidaeWriteConfiguration);
// set the owning side to null (unless already changed)
if ($apidaeWriteConfiguration->getOwner() === $this) {
$apidaeWriteConfiguration->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|BridgeUserParameter[]
*/
public function getBridgeParameters(): Collection
{
return $this->bridgeParameters;
}
public function addBridgeParameter(BridgeUserParameter $parameter): self
{
if (!$this->bridgeParameters->contains($parameter)) {
$this->bridgeParameters[] = $parameter;
$parameter->setOwner($this);
}
return $this;
}
public function removeBridgeParameter(BridgeUserParameter $parameter): self
{
if ($this->bridgeParameters->contains($parameter)) {
$this->bridgeParameters->removeElement($parameter);
// set the owning side to null (unless already changed)
if ($parameter->getOwner() === $this) {
$parameter->setOwner(null);
}
}
return $this;
}
public function getParams(): ?array
{
return $this->params;
}
public function setParams(?array $params): self
{
$this->params = $params;
return $this;
}
/**
* @return Collection|ResetPasswordRequest[]
*/
public function getResetPasswordRequests(): Collection
{
return $this->resetPasswordRequests;
}
public function addResetPasswordRequest(ResetPasswordRequest $resetPasswordRequest): self
{
if (!$this->resetPasswordRequests->contains($resetPasswordRequest)) {
$this->resetPasswordRequests[] = $resetPasswordRequest;
$resetPasswordRequest->setUser($this);
}
return $this;
}
public function removeResetPasswordRequest(ResetPasswordRequest $resetPasswordRequest): self
{
if ($this->resetPasswordRequests->contains($resetPasswordRequest)) {
$this->resetPasswordRequests->removeElement($resetPasswordRequest);
// Set the owning side to null (unless already changed)
if ($resetPasswordRequest->getUser() === $this) {
$resetPasswordRequest->setUser(null);
}
}
return $this;
}
}