<?phpnamespace App\Domain\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;class MetadataTramite extends Metadata{ private Collection $tramites; private $metadataExpediente; private Collection $responsables; private ?EstadoTramite $estadoInicial = null; private ?EstadoTramite $estadoFinal = null; private Collection $estadoDisponibles; private Collection $estadoFinales; private $incohacion; public function __construct() { parent::__construct(); $this->tramites = new ArrayCollection(); $this->responsables = new ArrayCollection(); $this->estadoDisponibles = new ArrayCollection(); $this->estadoFinales = new ArrayCollection(); } public function isIncohacion(): ?bool { return $this->incohacion; } public function setIncohacion(?bool $incohacion): static { $this->incohacion = $incohacion; return $this; } /** * @return Collection<int, Tramite> */ public function getTramites(): Collection { return $this->tramites; } public function addTramite(Tramite $tramite): static { if (!$this->tramites->contains($tramite)) { $this->tramites->add($tramite); $tramite->setMetadata($this); } return $this; } public function removeTramite(Tramite $tramite): static { if ($this->tramites->removeElement($tramite)) { // set the owning side to null (unless already changed) if ($tramite->getMetadata() === $this) { $tramite->setMetadata(null); } } return $this; } public function getMetadataExpediente(): ?MetadataExpediente { return $this->metadataExpediente; } public function setMetadataExpediente(?MetadataExpediente $metadataExpediente): static { $this->metadataExpediente = $metadataExpediente; return $this; } public function getEstadoInicial(): ?EstadoTramite { return $this->estadoInicial; } public function setEstadoInicial(?EstadoTramite $estadoInicial): static { $this->estadoInicial = $estadoInicial; return $this; } /** * @return Collection<int, SonataUserUser> */ public function getResponsables(): Collection { return $this->responsables; } public function addResponsable(SonataUserUser $responsable): static { if (!$this->responsables->contains($responsable)) { $this->responsables->add($responsable); } return $this; } public function removeResponsable(SonataUserUser $responsable): static { $this->responsables->removeElement($responsable); return $this; } /** * @return Collection<int, EstadoTramite> */ public function getEstadoDisponibles(): Collection { return $this->estadoDisponibles; } public function addEstadoDisponible(EstadoTramite $estadoDisponible): static { if (!$this->estadoDisponibles->contains($estadoDisponible)) { $this->estadoDisponibles->add($estadoDisponible); } return $this; } public function removeEstadoDisponible(EstadoTramite $estadoDisponible): static { $this->estadoDisponibles->removeElement($estadoDisponible); return $this; } /** * @return Collection<int, EstadoTramite> */ public function getEstadoFinales(): Collection { return $this->estadoFinales; } public function addEstadoFinale(EstadoTramite $estadoFinale): static { if (!$this->estadoFinales->contains($estadoFinale)) { $this->estadoFinales->add($estadoFinale); } return $this; } public function removeEstadoFinale(EstadoTramite $estadoFinale): static { $this->estadoFinales->removeElement($estadoFinale); return $this; }}