src/Domain/Entity/MetadataTramite.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. class MetadataTramite extends Metadata
  7. {
  8.     private Collection $tramites;
  9.     private  $metadataExpediente;
  10.     private Collection $responsables;
  11.     private ?EstadoTramite $estadoInicial null;
  12.     private ?EstadoTramite $estadoFinal null;
  13.     private Collection $estadoDisponibles;
  14.     private Collection $estadoFinales;
  15.     private $procedimiento;
  16.     private $incohacion;
  17.     public function __construct()
  18.     {
  19.         parent::__construct();
  20.         $this->tramites = new ArrayCollection();
  21.         $this->responsables = new ArrayCollection();
  22.         $this->estadoDisponibles = new ArrayCollection();
  23.         $this->estadoFinales = new ArrayCollection();
  24.     }
  25.     public function isIncohacion(): ?bool
  26.     {
  27.         return $this->incohacion;
  28.     }
  29.     public function setIncohacion(?bool $incohacion): static
  30.     {
  31.         $this->incohacion $incohacion;
  32.         return $this;
  33.     }
  34.     /**
  35.      * @return Collection<int, Tramite>
  36.      */
  37.     public function getTramites(): Collection
  38.     {
  39.         return $this->tramites;
  40.     }
  41.     public function addTramite(Tramite $tramite): static
  42.     {
  43.         if (!$this->tramites->contains($tramite)) {
  44.             $this->tramites->add($tramite);
  45.             $tramite->setMetadata($this);
  46.         }
  47.         return $this;
  48.     }
  49.     public function removeTramite(Tramite $tramite): static
  50.     {
  51.         if ($this->tramites->removeElement($tramite)) {
  52.             // set the owning side to null (unless already changed)
  53.             if ($tramite->getMetadata() === $this) {
  54.                 $tramite->setMetadata(null);
  55.             }
  56.         }
  57.         return $this;
  58.     }
  59.     public function getMetadataExpediente(): ?MetadataExpediente
  60.     {
  61.         return $this->metadataExpediente;
  62.     }
  63.     public function setMetadataExpediente(?MetadataExpediente $metadataExpediente): static
  64.     {
  65.         $this->metadataExpediente $metadataExpediente;
  66.         return $this;
  67.     }
  68.     public function getEstadoInicial(): ?EstadoTramite
  69.     {
  70.         return $this->estadoInicial;
  71.     }
  72.     public function setEstadoInicial(?EstadoTramite $estadoInicial): static
  73.     {
  74.         $this->estadoInicial $estadoInicial;
  75.         return $this;
  76.     }
  77.     /**
  78.      * @return Collection<int, SonataUserUser>
  79.      */
  80.     public function getResponsables(): Collection
  81.     {
  82.         return $this->responsables;
  83.     }
  84.     public function addResponsable(SonataUserUser $responsable): static
  85.     {
  86.         if (!$this->responsables->contains($responsable)) {
  87.             $this->responsables->add($responsable);
  88.         }
  89.         return $this;
  90.     }
  91.     public function removeResponsable(SonataUserUser $responsable): static
  92.     {
  93.         $this->responsables->removeElement($responsable);
  94.         return $this;
  95.     }
  96.     /**
  97.      * @return Collection<int, EstadoTramite>
  98.      */
  99.     public function getEstadoDisponibles(): Collection
  100.     {
  101.         return $this->estadoDisponibles;
  102.     }
  103.     public function addEstadoDisponible(EstadoTramite $estadoDisponible): static
  104.     {
  105.         if (!$this->estadoDisponibles->contains($estadoDisponible)) {
  106.             $this->estadoDisponibles->add($estadoDisponible);
  107.         }
  108.         return $this;
  109.     }
  110.     public function removeEstadoDisponible(EstadoTramite $estadoDisponible): static
  111.     {
  112.         $this->estadoDisponibles->removeElement($estadoDisponible);
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return Collection<int, EstadoTramite>
  117.      */
  118.     public function getEstadoFinales(): Collection
  119.     {
  120.         return $this->estadoFinales;
  121.     }
  122.     public function addEstadoFinale(EstadoTramite $estadoFinale): static
  123.     {
  124.         if (!$this->estadoFinales->contains($estadoFinale)) {
  125.             $this->estadoFinales->add($estadoFinale);
  126.         }
  127.         return $this;
  128.     }
  129.     public function removeEstadoFinale(EstadoTramite $estadoFinale): static
  130.     {
  131.         $this->estadoFinales->removeElement($estadoFinale);
  132.         return $this;
  133.     }
  134.     public function getProcedimiento(): ?string
  135.     {
  136.         return $this->procedimiento;
  137.     }
  138.     public function setProcedimiento(?string $procedimiento): static
  139.     {
  140.         $this->procedimiento $procedimiento;
  141.         return $this;
  142.     }
  143. }