<?phpnamespace App\Domain\Entity;use DateTimeInterface;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Sonata\UserBundle\Entity\BaseUser;use Symfony\Component\Uid\Uuid;class SonataUserUser extends BaseUser{ protected $id; private Collection $expedientesCreador; private Collection $expedientesResponsable; private Collection $metadataExpedientesResponsable; private Collection $tramitesResponsable; private Collection $metadataTramitesResponsable; private ?Entidad $entidad = null; private ?Sede $sedeResponsable = null; private ?DateTimeInterface $deletedAt; private Collection $documentacionRegistros; public function __construct() { $this->expedientesCreador = new ArrayCollection(); $this->metadataExpedientesResponsable = new ArrayCollection(); $this->tramitesResponsable = new ArrayCollection(); $this->metadataTramitesResponsable = new ArrayCollection(); $this->expedientesResponsable = new ArrayCollection(); $this->documentacionRegistros = new ArrayCollection(); } public function getId(): ?Uuid { return $this->id; } /** * @return Collection<int, Expediente> */ public function getExpedientesCreador(): Collection { return $this->expedientesCreador; } public function addExpedientesCreador(Expediente $expedientesCreador): static { if (!$this->expedientesCreador->contains($expedientesCreador)) { $this->expedientesCreador->add($expedientesCreador); $expedientesCreador->setCreador($this); } return $this; } public function removeExpedientesCreador(Expediente $expedientesCreador): static { if ($this->expedientesCreador->removeElement($expedientesCreador)) { // set the owning side to null (unless already changed) if ($expedientesCreador->getCreador() === $this) { $expedientesCreador->setCreador(null); } } return $this; } /** * @return Collection<int, MetadataExpediente> */ public function getMetadataExpedientesResponsable(): Collection { return $this->metadataExpedientesResponsable; } public function addMetadataExpedientesResponsable(MetadataExpediente $metadataExpedientesResponsable): static { if (!$this->metadataExpedientesResponsable->contains($metadataExpedientesResponsable)) { $this->metadataExpedientesResponsable->add($metadataExpedientesResponsable); $metadataExpedientesResponsable->addResponsable($this); } return $this; } public function removeMetadataExpedientesResponsable(MetadataExpediente $metadataExpedientesResponsable): static { if ($this->metadataExpedientesResponsable->removeElement($metadataExpedientesResponsable)) { $metadataExpedientesResponsable->removeResponsable($this); } return $this; } /** * @return Collection<int, Tramite> */ public function getTramitesResponsable(): Collection { return $this->tramitesResponsable; } public function addTramitesResponsable(Tramite $tramitesResponsable): static { if (!$this->tramitesResponsable->contains($tramitesResponsable)) { $this->tramitesResponsable->add($tramitesResponsable); $tramitesResponsable->addResponsable($this); } return $this; } public function removeTramitesResponsable(Tramite $tramitesResponsable): static { if ($this->tramitesResponsable->removeElement($tramitesResponsable)) { $tramitesResponsable->removeResponsable($this); } return $this; } /** * @return Collection<int, MetadataTramite> */ public function getMetadataTramitesResponsable(): Collection { return $this->metadataTramitesResponsable; } public function addMetadataTramitesResponsable(MetadataTramite $metadataTramitesResponsable): static { if (!$this->metadataTramitesResponsable->contains($metadataTramitesResponsable)) { $this->metadataTramitesResponsable->add($metadataTramitesResponsable); $metadataTramitesResponsable->addResponsable($this); } return $this; } public function removeMetadataTramitesResponsable(MetadataTramite $metadataTramitesResponsable): static { if ($this->metadataTramitesResponsable->removeElement($metadataTramitesResponsable)) { $metadataTramitesResponsable->removeResponsable($this); } return $this; } /** * @return Collection<int, Expediente> */ public function getExpedientesResponsable(): Collection { return $this->expedientesResponsable; } public function addExpedientesResponsable(Expediente $expedientesResponsable): static { if (!$this->expedientesResponsable->contains($expedientesResponsable)) { $this->expedientesResponsable->add($expedientesResponsable); $expedientesResponsable->addResponsable($this); } return $this; } public function removeExpedientesResponsable(Expediente $expedientesResponsable): static { if ($this->expedientesResponsable->removeElement($expedientesResponsable)) { $expedientesResponsable->removeResponsable($this); } return $this; } public function getEntidad(): ?Entidad { return $this->entidad; } public function setEntidad(?Entidad $entidad): static { $this->entidad = $entidad; return $this; } public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?\DateTimeInterface $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } public function getSedeResponsable(): ?Sede { return $this->sedeResponsable; } public function setSedeResponsable(?Sede $sedeResponsable): static { // unset the owning side of the relation if necessary if ($sedeResponsable === null && $this->sedeResponsable !== null) { $this->sedeResponsable->setResponsable(null); } // set the owning side of the relation if necessary if ($sedeResponsable !== null && $sedeResponsable->getResponsable() !== $this) { $sedeResponsable->setResponsable($this); } $this->sedeResponsable = $sedeResponsable; return $this; } /** * @return Collection<int, DocumentacionRegistro> */ public function getDocumentacionRegistros(): Collection { return $this->documentacionRegistros; } public function addDocumentacionRegistro(DocumentacionRegistro $documentacionRegistro): static { if (!$this->documentacionRegistros->contains($documentacionRegistro)) { $this->documentacionRegistros->add($documentacionRegistro); $documentacionRegistro->setUser($this); } return $this; } public function removeDocumentacionRegistro(DocumentacionRegistro $documentacionRegistro): static { if ($this->documentacionRegistros->removeElement($documentacionRegistro)) { // set the owning side to null (unless already changed) if ($documentacionRegistro->getUser() === $this) { $documentacionRegistro->setUser(null); } } return $this; }}