src/Entity/RFPrecintoAsignacion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFPrecintoAsignacionRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Table(name'rf_precinto_asignacion')]
  9. #[ORM\Entity(repositoryClassRFPrecintoAsignacionRepository::class)]
  10. class RFPrecintoAsignacion
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'precintoAsignacion')]
  17.     private ?RFPrecintoSolicitud $precintoSolicitud null;
  18.     #[ORM\ManyToOne(inversedBy'precintoAsignacion')]
  19.     private ?TerEmpresa $empresaFilial null;
  20.     #[ORM\ManyToOne(inversedBy'precintoAsignacion')]
  21.     private ?TerSedeEmpresa $sede null;
  22.     #[ORM\ManyToOne(inversedBy'precintoAsignacion')]
  23.     private ?TerPersona $coordinador null;
  24.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  25.     private ?string $observaciones null;
  26.     #[ORM\ManyToOne(inversedBy'entregaPrecintoAsignado')]
  27.     private ?TerPersona $usuarioEntrega null;
  28.     #[ORM\ManyToOne(inversedBy'recibePrecintoAsignado')]
  29.     private ?TerPersona $usuarioRecibe null;
  30.     #[ORM\ManyToOne(inversedBy'precintoAsignado')]
  31.     private ?ParProceso $proceso null;
  32.     #[ORM\ManyToOne(inversedBy'precintoAsignado')]
  33.     private ?GHPerfilCargo $cargo null;
  34.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  35.     private ?\DateTimeInterface $createAt null;
  36.     #[ORM\Column(length50)]
  37.     private ?string $createUser null;
  38.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  39.     private ?\DateTimeInterface $updateAt null;
  40.     #[ORM\Column(length50)]
  41.     private ?string $updateUser null;
  42.     #[ORM\Column(length100nullabletrue)]
  43.     private ?string $recibido null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $actaFirmada null;
  46.     #[ORM\OneToMany(mappedBy'precintoAsignacion'targetEntityRFPrecintoCodigo::class)]
  47.     private Collection $precintoCodigos;
  48.     public function __construct()
  49.     {
  50.         $this->precintoCodigos = new ArrayCollection();
  51.     }
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getPrecintoSolicitud(): ?RFPrecintoSolicitud
  57.     {
  58.         return $this->precintoSolicitud;
  59.     }
  60.     public function setPrecintoSolicitud(?RFPrecintoSolicitud $precintoSolicitud): static
  61.     {
  62.         $this->precintoSolicitud $precintoSolicitud;
  63.         return $this;
  64.     }
  65.     public function getEmpresaFilial(): ?TerEmpresa
  66.     {
  67.         return $this->empresaFilial;
  68.     }
  69.     public function setEmpresaFilial(?TerEmpresa $empresaFilial): static
  70.     {
  71.         $this->empresaFilial $empresaFilial;
  72.         return $this;
  73.     }
  74.     public function getSede(): ?TerSedeEmpresa
  75.     {
  76.         return $this->sede;
  77.     }
  78.     public function setSede(?TerSedeEmpresa $sede): static
  79.     {
  80.         $this->sede $sede;
  81.         return $this;
  82.     }
  83.     public function getCoordinador(): ?TerPersona
  84.     {
  85.         return $this->coordinador;
  86.     }
  87.     public function setCoordinador(?TerPersona $coordinador): static
  88.     {
  89.         $this->coordinador $coordinador;
  90.         return $this;
  91.     }
  92.     public function getObservaciones(): ?string
  93.     {
  94.         return $this->observaciones;
  95.     }
  96.     public function setObservaciones(?string $observaciones): static
  97.     {
  98.         $this->observaciones $observaciones;
  99.         return $this;
  100.     }
  101.     public function getUsuarioEntrega(): ?TerPersona
  102.     {
  103.         return $this->usuarioEntrega;
  104.     }
  105.     public function setUsuarioEntrega(?TerPersona $usuarioEntrega): static
  106.     {
  107.         $this->usuarioEntrega $usuarioEntrega;
  108.         return $this;
  109.     }
  110.     public function getUsuarioRecibe(): ?TerPersona
  111.     {
  112.         return $this->usuarioRecibe;
  113.     }
  114.     public function setUsuarioRecibe(?TerPersona $usuarioRecibe): static
  115.     {
  116.         $this->usuarioRecibe $usuarioRecibe;
  117.         return $this;
  118.     }
  119.     public function getProceso(): ?ParProceso
  120.     {
  121.         return $this->proceso;
  122.     }
  123.     public function setProceso(?ParProceso $proceso): static
  124.     {
  125.         $this->proceso $proceso;
  126.         return $this;
  127.     }
  128.     public function getCargo(): ?GHPerfilCargo
  129.     {
  130.         return $this->cargo;
  131.     }
  132.     public function setCargo(?GHPerfilCargo $cargo): static
  133.     {
  134.         $this->cargo $cargo;
  135.         return $this;
  136.     }
  137.     public function getCreateAt(): ?\DateTimeInterface
  138.     {
  139.         return $this->createAt;
  140.     }
  141.     public function setCreateAt(\DateTimeInterface $createAt): static
  142.     {
  143.         $this->createAt $createAt;
  144.         return $this;
  145.     }
  146.     public function getCreateUser(): ?string
  147.     {
  148.         return $this->createUser;
  149.     }
  150.     public function setCreateUser(string $createUser): static
  151.     {
  152.         $this->createUser $createUser;
  153.         return $this;
  154.     }
  155.     public function getUpdateAt(): ?\DateTimeInterface
  156.     {
  157.         return $this->updateAt;
  158.     }
  159.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  160.     {
  161.         $this->updateAt $updateAt;
  162.         return $this;
  163.     }
  164.     public function getUpdateUser(): ?string
  165.     {
  166.         return $this->updateUser;
  167.     }
  168.     public function setUpdateUser(string $updateUser): static
  169.     {
  170.         $this->updateUser $updateUser;
  171.         return $this;
  172.     }
  173.     public function getRecibido(): ?string
  174.     {
  175.         return $this->recibido;
  176.     }
  177.     public function setRecibido(?string $recibido): static
  178.     {
  179.         $this->recibido $recibido;
  180.         return $this;
  181.     }
  182.     public function getActaFirmada(): ?string
  183.     {
  184.         return $this->actaFirmada;
  185.     }
  186.     public function setActaFirmada(?string $actaFirmada): static
  187.     {
  188.         $this->actaFirmada $actaFirmada;
  189.         return $this;
  190.     }
  191.     /**
  192.      * @return Collection<int, RFPrecintoCodigo>
  193.      */
  194.     public function getPrecintoCodigos(): Collection
  195.     {
  196.         return $this->precintoCodigos;
  197.     }
  198.     public function addPrecintoCodigo(RFPrecintoCodigo $precintoCodigo): static
  199.     {
  200.         if (!$this->precintoCodigos->contains($precintoCodigo)) {
  201.             $this->precintoCodigos->add($precintoCodigo);
  202.             $precintoCodigo->setPrecintoAsignacion($this);
  203.         }
  204.         return $this;
  205.     }
  206.     public function removePrecintoCodigo(RFPrecintoCodigo $precintoCodigo): static
  207.     {
  208.         if ($this->precintoCodigos->removeElement($precintoCodigo)) {
  209.             // set the owning side to null (unless already changed)
  210.             if ($precintoCodigo->getPrecintoAsignacion() === $this) {
  211.                 $precintoCodigo->setPrecintoAsignacion(null);
  212.             }
  213.         }
  214.         return $this;
  215.     }
  216. }